/* Smartclick WMS · estilos unificados v0.11.0
 * Reemplaza 47 hojas de estilo que se cargaban una arriba de otra.
 * El orden de abajo es exactamente el orden en que se aplicaban. */

/* ===== origen: wms.css ===== */
:root{
  --sc-red:#9f1d24;--sc-red-dark:#73151a;--sc-red-soft:#fbeaec;--sc-red-border:#dca3a8;
  --sc-black:#111318;--sc-text:#20242d;--sc-muted:#5f6876;--sc-muted-2:#7f8997;
  --sc-bg:#f2f4f6;--sc-card:#fff;--sc-border:#d5dae1;--sc-soft:#f8f9fa;
  --sc-green:#16894a;--sc-green-soft:#e8f6ed;--sc-amber:#b47700;--sc-amber-soft:#f6e7bc;
  --sc-blue:#3478f6;--sc-blue-soft:#eef4ff;--sc-shadow:0 18px 50px rgba(20,26,36,.055);
  --sc-radius:18px;
}
html{scroll-behavior:smooth}
body.scwms-page{margin:0!important;background:var(--sc-bg)!important;overflow-x:hidden}
body.scwms-page>header,body.scwms-page>footer,body.scwms-page header.wp-block-template-part,body.scwms-page footer.wp-block-template-part{display:none!important}
body.scwms-page .wp-site-blocks,body.scwms-page main,body.scwms-page .entry-content,body.scwms-page .entry-content>*{margin:0!important;padding:0!important;max-width:none!important;width:100%!important}
.scwms-app,.scwms-app *{box-sizing:border-box}
.scwms-app{display:flex;align-items:stretch;min-height:100vh;width:100%;background:var(--sc-bg);color:var(--sc-text);font-family:'Inter',Arial,sans-serif;font-size:14px;line-height:1.4}
.scwms-icon{width:20px;height:20px;display:block;flex:0 0 auto}
.scwms-sidebar{position:sticky;top:0;flex:0 0 282px;min-width:282px;width:282px;height:100vh;overflow-y:auto;background:#fff;border-right:1px solid var(--sc-border);padding:24px 16px 16px;display:flex;flex-direction:column;z-index:30}
.scwms-brand{font-size:21px;font-weight:800;letter-spacing:-.045em;padding:0 10px 25px;color:#16181d}.scwms-brand span{color:var(--sc-red)}
.scwms-nav{display:grid;gap:3px;overflow:auto;padding:0 1px 10px;scrollbar-width:thin}.scwms-nav-item{appearance:none;border:0;background:transparent;color:#404957;border-radius:13px;padding:12px 13px;font:600 13px/1.2 'Inter',sans-serif;display:flex;align-items:center;gap:13px;cursor:pointer;text-align:left;transition:background .16s,color .16s,transform .16s}.scwms-nav-item:hover{background:#f4f5f7;color:#1d222b}.scwms-nav-item:active{transform:scale(.99)}.scwms-nav-item.is-active{background:var(--sc-red-soft);color:var(--sc-red);box-shadow:inset 3px 0 0 var(--sc-red)}.scwms-nav-item .scwms-icon{width:20px;height:20px}
.scwms-sidebar-bottom{margin-top:auto;display:grid;gap:10px}.scwms-user-card,.scwms-device-card{border:1px solid var(--sc-border);background:#fff;border-radius:15px;padding:11px 12px;box-shadow:0 8px 24px rgba(20,26,36,.025)}.scwms-user-card{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center}.scwms-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--sc-red);color:#fff;font-weight:800;font-size:12px}.scwms-user-card strong{display:block;font-size:11px;color:#20242c}.scwms-user-card small{display:block;color:var(--sc-muted);font-size:9px;margin-top:2px}.scwms-chevron{color:#7f8793}.scwms-device-card{display:flex;align-items:center;gap:10px}.scwms-device-card small,.scwms-device-card strong{display:block}.scwms-device-card small{font-size:8px;color:var(--sc-muted)}.scwms-device-card strong{font-size:9px;margin-top:2px}.scwms-device-dot{width:9px;height:9px;border-radius:50%;background:var(--sc-green);box-shadow:0 0 0 4px var(--sc-green-soft)}
.scwms-main{flex:1 1 auto;min-width:0;width:auto;min-height:100vh;margin-left:0}.scwms-topbar{height:74px;position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:flex-end;gap:15px;padding:0 28px;background:rgba(246,247,249,.92);backdrop-filter:blur(12px);border-bottom:1px solid rgba(231,233,237,.95)}.scwms-search{width:min(430px,42vw);height:43px;border:1px solid var(--sc-border);background:#fff;border-radius:13px;display:flex;align-items:center;gap:9px;padding:0 13px;color:#7d8693}.scwms-search .scwms-icon{width:18px;height:18px}.scwms-search input{border:0!important;outline:none!important;box-shadow:none!important;background:transparent!important;width:100%;padding:0!important;font:500 11px 'Inter';color:#2b3039}.scwms-top-actions{display:flex;align-items:center;gap:10px}.scwms-ml-status{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--sc-red-border);background:var(--sc-red-soft);color:var(--sc-red);border-radius:999px;padding:8px 11px;font-size:9px;font-weight:700;white-space:nowrap}.scwms-ml-status i{width:7px;height:7px;border-radius:50%;background:var(--sc-red)}.scwms-ml-status.is-connected{background:var(--sc-green-soft);border-color:#cbeed7;color:#187840}.scwms-ml-status.is-connected i{background:var(--sc-green)}.scwms-notification{position:relative;width:42px;height:42px;border:1px solid var(--sc-border);border-radius:50%;background:#fff;display:grid;place-items:center;color:#596272;cursor:pointer}.scwms-notification .scwms-icon{width:18px;height:18px}.scwms-notification b{position:absolute;right:2px;top:1px;min-width:15px;height:15px;padding:0 4px;border-radius:999px;background:var(--sc-red);color:#fff;display:grid;place-items:center;font-size:8px}.scwms-menu-btn,.scwms-mobile-close{display:none}
.scwms-content{padding:26px 28px 42px;max-width:1560px;margin:0 auto}
.scwms-content,.scwms-topbar,.scwms-panel,.scwms-grid,.scwms-kpi-grid{min-width:0}.scwms-section{display:none;animation:scwmsFade .2s ease}.scwms-section.is-active{display:block}@keyframes scwmsFade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.scwms-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:20px}.scwms-page-head h1{margin:0 0 6px;font-size:28px;line-height:1.1;font-weight:800;letter-spacing:-.045em;color:#15171c}.scwms-page-head p{margin:0;color:var(--sc-muted);font-size:11px;max-width:760px}.scwms-actions{display:flex;gap:8px;flex-wrap:wrap}
.scwms-btn{appearance:none;border:1px solid var(--sc-red);background:var(--sc-red);color:#fff!important;padding:10px 14px;border-radius:10px;font:700 10px 'Inter';cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:transform .16s,box-shadow .16s,background .16s}.scwms-btn:hover{background:var(--sc-red-dark);border-color:var(--sc-red-dark);box-shadow:0 8px 20px rgba(197,31,31,.18);transform:translateY(-1px)}.scwms-btn:active{transform:translateY(0)}.scwms-btn.outline{background:#fff;color:var(--sc-red)!important;border-color:var(--sc-red-border)}.scwms-btn.full{width:100%}.scwms-btn[disabled]{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}.scwms-btn .scwms-icon{width:16px;height:16px}.scwms-filter-pill{appearance:none;border:1px solid var(--sc-border);background:#fff;border-radius:9px;padding:8px 10px;font:600 9px 'Inter';color:#687180}.scwms-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 9px;font-size:8px;font-weight:800;white-space:nowrap;background:#f1f3f5;color:#59616d;border:1px solid #e6e8eb}.scwms-pill.success{background:var(--sc-green-soft);color:#187840;border-color:#ccebd6}.scwms-pill.warning{background:var(--sc-amber-soft);color:#765000;border-color:#d8b56a}.scwms-pill.danger{background:var(--sc-red-soft);color:var(--sc-red);border-color:var(--sc-red-border)}.scwms-pill.muted{background:#f2f4f6;color:#737b87}.scwms-badges-row{display:flex;gap:8px;flex-wrap:wrap}
.scwms-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px}.scwms-kpi{background:#fff;border:1px solid var(--sc-border);border-radius:17px;padding:18px;min-height:118px;box-shadow:var(--sc-shadow);display:flex;gap:13px;align-items:flex-start;transition:transform .18s,box-shadow .18s}.scwms-kpi:hover{transform:translateY(-2px);box-shadow:0 20px 55px rgba(20,26,36,.075)}.scwms-kpi-icon{width:40px;height:40px;border-radius:12px;background:var(--sc-red-soft);color:var(--sc-red);display:grid;place-items:center;flex:0 0 auto}.scwms-kpi-icon .scwms-icon{width:20px;height:20px}.scwms-kpi small{display:block;color:#4e5663;font-weight:600;font-size:9px}.scwms-kpi strong{display:block;color:#11141a;font-size:25px;line-height:1;margin:10px 0 7px;letter-spacing:-.04em}.scwms-kpi em{display:block;color:var(--sc-muted);font-size:8px;font-style:normal}.scwms-kpi.danger strong{color:var(--sc-red)}
.scwms-grid{display:grid;gap:16px}.scwms-grid.main-two{grid-template-columns:minmax(0,1.55fr) minmax(300px,.95fr)}.scwms-grid.supervisor-grid{grid-template-columns:1.25fr 1fr .72fr}.scwms-grid.audit-grid{grid-template-columns:1.7fr .9fr}.scwms-grid.picking-grid{grid-template-columns:1.2fr .9fr .8fr}.scwms-grid.packing-grid{grid-template-columns:1.55fr .95fr}.scwms-grid.packing-bottom{grid-template-columns:.8fr 1.05fr .9fr}.scwms-grid.products-three{grid-template-columns:repeat(3,1fr)}.scwms-grid.racks-grid{grid-template-columns:1.6fr .72fr}.scwms-stack{display:grid;gap:16px}.scwms-space-top{margin-top:16px}
.scwms-panel{background:#fff;border:1px solid var(--sc-border);border-radius:17px;padding:17px;box-shadow:var(--sc-shadow);min-width:0}.scwms-panel.compact{padding:15px}.scwms-panel.wide{min-width:0}.scwms-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.scwms-panel-head h3{margin:0 0 4px;font-size:13px;font-weight:700;letter-spacing:-.025em;color:#1b1e24}.scwms-panel-head p{margin:0;color:var(--sc-muted);font-size:8px}.scwms-panel-head>.scwms-btn{padding:8px 10px;font-size:8px}
.scwms-line-chart{height:240px;position:relative;padding:6px 4px 26px}.scwms-line-chart svg{width:100%;height:100%;overflow:visible;background:repeating-linear-gradient(to bottom,transparent 0,transparent 43px,#edf0f3 44px,#edf0f3 45px)}.scwms-line-chart .area{fill:url(#chartFill)}.scwms-line-chart .line{fill:none;stroke:var(--sc-red);stroke-width:3;vector-effect:non-scaling-stroke}.scwms-chart-x{position:absolute;left:6px;right:6px;bottom:0;display:grid;grid-template-columns:repeat(7,1fr);text-align:center;color:#8d94a0;font-size:7px}
.scwms-progress-list{display:grid;gap:12px}.scwms-progress-row{display:grid;grid-template-columns:1fr 52px;gap:7px 12px;align-items:center}.scwms-progress-row>div:first-child{display:flex;justify-content:space-between;gap:10px;grid-column:1/-1;font-size:9px}.scwms-progress-row b{font-size:9px}.scwms-progress{height:6px;background:#eef0f3;border-radius:999px;overflow:hidden}.scwms-progress i{height:100%;display:block;border-radius:999px;background:var(--sc-green)}.scwms-progress.warn i{background:var(--sc-amber)}.scwms-progress.bad i{background:var(--sc-red)}.scwms-progress.muted i{background:#bec5cf}.scwms-progress-row small{font-size:7px;color:var(--sc-muted);text-align:right}
.scwms-status-line{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #eef0f2;font-size:9px}.scwms-status-line:last-child{border-bottom:0}.scwms-status-line b{font-size:9px}.scwms-summary-strip{display:grid;grid-template-columns:repeat(5,1fr);margin-top:18px;border:1px solid var(--sc-border);border-radius:12px;overflow:hidden}.scwms-summary-strip>div{padding:11px 12px;border-right:1px solid var(--sc-border)}.scwms-summary-strip>div:last-child{border-right:0}.scwms-summary-strip small,.scwms-summary-strip b{display:block}.scwms-summary-strip small{font-size:7px;color:var(--sc-muted)}.scwms-summary-strip b{font-size:16px;margin-top:4px}
.scwms-flow{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;position:relative}.scwms-flow:before{content:"";position:absolute;left:7%;right:7%;top:24px;height:2px;background:linear-gradient(90deg,#6aa5ff,var(--sc-amber),var(--sc-green),var(--sc-red));opacity:.5}.scwms-flow-node{position:relative;z-index:1;text-align:center}.scwms-flow-node>span{width:48px;height:48px;margin:0 auto 7px;border-radius:50%;background:#f0f5ff;color:#3f82f8;display:grid;place-items:center;border:1px solid #dbe8ff}.scwms-flow-node:nth-child(2)>span,.scwms-flow-node:nth-child(3)>span{background:var(--sc-amber-soft);color:#be7c00;border-color:#f2ddb3}.scwms-flow-node:nth-child(4)>span,.scwms-flow-node:nth-child(5)>span{background:var(--sc-green-soft);color:var(--sc-green);border-color:#ccebd6}.scwms-flow-node.danger>span{background:var(--sc-red-soft);color:var(--sc-red);border-color:var(--sc-red-border)}.scwms-flow-node .scwms-icon{width:20px;height:20px}.scwms-flow-node b,.scwms-flow-node strong{display:block}.scwms-flow-node b{font-size:8px}.scwms-flow-node strong{font-size:18px;margin-top:3px}
.scwms-alert-list,.scwms-event-list{display:grid}.scwms-alert-list>div,.scwms-event-list>div{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #edf0f2}.scwms-alert-list>div:last-child,.scwms-event-list>div:last-child{border-bottom:0}.scwms-alert-list p,.scwms-event-list p{margin:0}.scwms-alert-list b,.scwms-event-list b{display:block;font-size:8px}.scwms-alert-list small,.scwms-event-list small{display:block;font-size:7px;color:var(--sc-muted);margin-top:2px}.scwms-alert-icon{width:28px;height:28px;border-radius:9px;background:var(--sc-red-soft);color:var(--sc-red);display:grid;place-items:center;font-weight:800}.scwms-alert-icon.amber{background:var(--sc-amber-soft);color:#b67800}.scwms-event-list span.ok,.scwms-event-list span.warn,.scwms-event-list span.bad{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;font-size:9px;font-weight:800}.scwms-event-list span.ok{background:var(--sc-green-soft);color:var(--sc-green)}.scwms-event-list span.warn{background:var(--sc-amber-soft);color:var(--sc-amber)}.scwms-event-list span.bad{background:var(--sc-red-soft);color:var(--sc-red)}.scwms-event-list time{font-size:7px;color:var(--sc-muted)}
.scwms-empty-state{min-height:150px;display:grid;place-items:center;align-content:center;text-align:center;padding:24px;color:var(--sc-muted)}.scwms-empty-state.visual{min-height:230px}.scwms-empty-state b{color:#313641;font-size:10px;margin-bottom:5px}.scwms-empty-state span:not(.scwms-empty-icon){font-size:8px;max-width:520px}.scwms-empty-state .scwms-btn{margin-top:14px}.scwms-empty-icon{width:48px;height:48px;border-radius:14px;background:var(--sc-red-soft);color:var(--sc-red);display:grid;place-items:center;margin-bottom:12px}.scwms-empty-mini{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #edf0f2;border-radius:12px;background:#fbfcfd}.scwms-empty-mini b,.scwms-empty-mini small{display:block}.scwms-empty-mini b{font-size:8px}.scwms-empty-mini small{font-size:7px;color:var(--sc-muted);margin-top:2px}
.scwms-table-wrap{overflow:auto;border:1px solid var(--sc-border);border-radius:12px}.scwms-table{width:100%;border-collapse:collapse;min-width:700px}.scwms-table th{font-size:7px;text-transform:uppercase;letter-spacing:.04em;color:#8a929e;text-align:left;padding:10px;border-bottom:1px solid var(--sc-border);background:#fafbfc}.scwms-table td{padding:11px 10px;border-bottom:1px solid #edf0f2;font-size:8px}.scwms-table tr:last-child td{border-bottom:0}.scwms-table td.empty{text-align:center;color:var(--sc-muted);padding:34px 20px}.scwms-table tbody tr:not(:has(td.empty)){cursor:pointer;transition:background .15s}.scwms-table tbody tr:not(:has(td.empty)):hover{background:#fff8f8}.scwms-table tbody tr.is-selected{background:var(--sc-red-soft)}
.scwms-action-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;border-radius:18px;padding:22px 24px;margin-bottom:16px;background:linear-gradient(135deg,#17191f 0%,#20232a 65%,#321717 100%);color:#fff;box-shadow:0 18px 50px rgba(17,20,28,.13)}.scwms-action-hero small{font-size:7px;color:#e1b5b5;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.scwms-action-hero h2{font-size:20px;margin:5px 0 5px}.scwms-action-hero p{font-size:8px;color:#cfd2d8;margin:0;max-width:720px}
.scwms-detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.scwms-detail-grid>div{border:1px solid var(--sc-border);border-radius:11px;background:#fafbfc;padding:10px}.scwms-detail-grid small,.scwms-detail-grid b{display:block}.scwms-detail-grid small{font-size:7px;color:var(--sc-muted);margin-bottom:4px}.scwms-detail-grid b{font-size:9px}
.scwms-order-focus{display:flex;align-items:center;gap:14px;margin-bottom:12px}.scwms-focus-icon{width:54px;height:54px;border-radius:14px;background:var(--sc-red-soft);color:var(--sc-red);display:grid;place-items:center}.scwms-focus-icon .scwms-icon{width:26px;height:26px}.scwms-order-focus small{font-size:7px;color:var(--sc-muted)}.scwms-order-focus h2{margin:3px 0 0;font-size:20px}.scwms-scanner-card{display:grid;place-items:center;text-align:center;padding:12px 2px}.scwms-scanner-card>span{width:50px;height:50px;border-radius:14px;background:var(--sc-red-soft);color:var(--sc-red);display:grid;place-items:center;margin-bottom:15px}.scwms-scanner-card input{width:100%;height:44px;border:1px solid var(--sc-border);border-radius:11px;padding:0 12px;font:500 9px 'Inter';outline:none}.scwms-scanner-card input:focus{border-color:var(--sc-red-border);box-shadow:0 0 0 4px var(--sc-red-soft)}.scwms-scanner-card small{font-size:7px;color:var(--sc-muted);margin-top:9px}.scwms-scanner-card.is-valid>span{background:var(--sc-green-soft);color:var(--sc-green)}.scwms-scanner-card.is-valid input{border-color:#bfe4ca;background:var(--sc-green-soft)}.scwms-route{display:flex;align-items:center;gap:8px}.scwms-route>div{flex:1;border:1px solid var(--sc-border);border-radius:12px;padding:10px;background:#fafbfc}.scwms-route>div i{width:22px;height:22px;border-radius:50%;background:var(--sc-red);color:#fff;display:grid;place-items:center;font-size:7px;font-style:normal;font-weight:800}.scwms-route b,.scwms-route small{display:block}.scwms-route b{font-size:8px;margin-top:6px}.scwms-route small{font-size:7px;color:var(--sc-muted);margin-top:2px}.scwms-route>span{color:var(--sc-red);font-weight:800}
.scwms-phone-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.scwms-phone{border:7px solid #171717;border-radius:27px;background:#fff;padding:14px 12px 16px;min-height:360px;box-shadow:0 14px 30px rgba(0,0,0,.08)}.scwms-phone-head{display:flex;justify-content:space-between;gap:7px;align-items:center;margin-bottom:12px}.scwms-phone-head b{font-size:6px}.scwms-phone-head small{font-size:6px;color:var(--sc-muted)}.scwms-phone h3{font-size:13px;margin:13px 0 5px}.scwms-phone .huge{font-size:28px;letter-spacing:-.04em}.scwms-phone p,.scwms-phone>small{font-size:7px;color:#5f6773}.scwms-phone-scan,.scwms-phone-good{border:1px dashed var(--sc-red-border);background:var(--sc-red-soft);border-radius:12px;padding:14px 8px;text-align:center;color:var(--sc-red);font-size:8px;margin:14px 0}.scwms-phone-good{border-color:#bde6ca;background:var(--sc-green-soft);color:#188044}.scwms-phone .scwms-btn{font-size:8px;padding:9px}.scwms-link-btn{border:0;background:transparent;color:var(--sc-muted);font:500 7px 'Inter';width:100%;margin-top:9px;cursor:pointer}
.scwms-packing-focus{display:grid;grid-template-columns:.9fr 1.1fr;gap:14px}.scwms-packing-focus h2{font-size:19px;margin:5px 0}.scwms-packing-focus p{font-size:8px;color:var(--sc-muted)}.scwms-packing-meta{display:flex;gap:16px;border-top:1px solid var(--sc-border);padding:12px 0;margin-top:12px;font-size:8px}.scwms-packing-meta span{display:flex;align-items:center;gap:6px}.scwms-packing-meta .scwms-icon{width:16px;height:16px}.scwms-label-preview{border:1px solid var(--sc-border);border-radius:12px;padding:10px}.scwms-label-preview>b{font-size:8px}.scwms-label-sheet{border:1px solid #bfc4cb;border-radius:6px;margin-top:8px;padding:12px;display:grid;gap:5px;background:#fff}.scwms-label-sheet strong{font-size:9px}.scwms-label-sheet small{font-size:6px}.scwms-barcode{height:50px;background:repeating-linear-gradient(90deg,#111 0,#111 2px,transparent 2px,transparent 4px,#111 4px,#111 5px,transparent 5px,transparent 8px)}.scwms-checklist{display:grid}.scwms-checklist>div{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #edf0f2;font-size:8px}.scwms-checklist>div:last-child{border-bottom:0}.scwms-checklist b{color:var(--sc-green);font-size:11px}
.scwms-validation-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}.scwms-validation-row>div{padding:10px;border:1px solid var(--sc-border);border-radius:11px;background:#fafbfc}.scwms-validation-row i{width:19px;height:19px;border-radius:50%;display:grid;place-items:center;background:var(--sc-green-soft);color:var(--sc-green);font-size:8px;font-style:normal;font-weight:800}.scwms-validation-row b,.scwms-validation-row small{display:block}.scwms-validation-row b{font-size:7px;margin-top:5px}.scwms-validation-row small{font-size:6px;color:var(--sc-muted);margin-top:2px}.scwms-quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.scwms-quick-actions button{border:1px solid var(--sc-border);background:#fff;border-radius:12px;padding:11px;display:flex;gap:8px;align-items:center;text-align:left;color:#4d5662}.scwms-quick-actions button .scwms-icon{color:var(--sc-red)}.scwms-quick-actions span,.scwms-quick-actions small{display:block}.scwms-quick-actions span{font:700 7px 'Inter'}.scwms-quick-actions small{font:500 6px 'Inter';color:var(--sc-muted);margin-top:2px}.scwms-timeline-flow{display:grid;grid-template-columns:repeat(6,1fr);position:relative;padding:10px 8px 0}.scwms-timeline-flow:before{content:"";position:absolute;left:8%;right:8%;top:17px;height:2px;background:#e7e9ec}.scwms-timeline-flow>div{position:relative;text-align:center;z-index:1}.scwms-timeline-flow i{display:block;width:13px;height:13px;border-radius:50%;border:2px solid var(--sc-red);background:#fff;margin:0 auto 8px}.scwms-timeline-flow .done i{background:var(--sc-red)}.scwms-timeline-flow b,.scwms-timeline-flow small{display:block}.scwms-timeline-flow b{font-size:7px}.scwms-timeline-flow small{font-size:6px;color:var(--sc-muted);margin-top:3px}
.scwms-audit-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:7px;color:var(--sc-muted);margin-bottom:12px}.scwms-audit-legend span{display:flex;align-items:center;gap:5px}.scwms-audit-legend i{width:11px;height:11px;border-radius:3px;border:1px solid var(--sc-border)}.scwms-audit-legend i.verified,.scwms-audit-row span.verified{background:#e9f8ed;border-color:#cdebd5;color:#236c3c}.scwms-audit-legend i.review,.scwms-audit-row span.review{background:#fff5df;border-color:#f2d9a4;color:#986300}.scwms-audit-legend i.pending,.scwms-audit-row span.pending{background:#fff0f0;border-color:#efc6c6;color:var(--sc-red)}.scwms-audit-legend i.nostock,.scwms-audit-row span.nostock{background:#f1f3f5;color:#747b86}.scwms-audit-matrix{display:grid;gap:7px}.scwms-audit-row{display:grid;grid-template-columns:32px repeat(12,1fr);gap:5px}.scwms-audit-row>b{height:31px;border-radius:7px;background:#f1f3f5;display:grid;place-items:center;font-size:8px}.scwms-audit-row>span{height:31px;border-radius:6px;display:grid;place-items:center;font-size:6px;border:1px solid var(--sc-border);background:#fafbfc}.scwms-quick-list{display:grid}.scwms-quick-list button{appearance:none;border:0;border-bottom:1px solid #edf0f2;background:transparent;padding:10px 2px;display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:8px;text-align:left;cursor:pointer;color:#333944}.scwms-quick-list button:last-child{border-bottom:0}.scwms-quick-list .scwms-icon{width:16px;height:16px;color:var(--sc-red)}.scwms-quick-list span{font:600 8px 'Inter'}
.scwms-legend{display:flex;gap:9px;flex-wrap:wrap;font-size:7px;color:var(--sc-muted)}.scwms-legend span{display:flex;align-items:center;gap:4px}.scwms-legend i{width:8px;height:8px;border-radius:50%}.scwms-legend i.available,.scwms-rack-cells i.available{background:#ccebd6;border-color:#78c990}.scwms-legend i.occupied,.scwms-rack-cells i.occupied{background:#e8ebee;border-color:#c6cbd1}.scwms-legend i.maintenance,.scwms-rack-cells i.maintenance{background:#f8dfa4;border-color:#e3b543}.scwms-legend i.blocked,.scwms-rack-cells i.blocked{background:#f2b8b6;border-color:#d96c68}.scwms-rack-overview{display:grid}.scwms-sector-row{display:grid;grid-template-columns:36px 1fr;gap:11px;align-items:center;border-top:1px solid #eef0f2;padding:12px 0}.scwms-sector-row:first-child{border-top:0}.scwms-sector-label{height:32px;border-radius:7px;background:#f1f3f5;display:grid;place-items:center;font-size:8px;font-weight:800}.scwms-sector-racks{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.scwms-overview-rack strong{display:block;text-align:center;margin-bottom:6px;font-size:8px}.scwms-rack-cells{display:grid;grid-template-columns:repeat(4,1fr);gap:2px}.scwms-rack-cells i{height:21px;border:1px solid transparent}.scwms-donut{width:145px;height:145px;border-radius:50%;margin:4px auto 14px;background:conic-gradient(#58be70 0 25%,#74a3ff 25% 50%,#efc44e 50% 75%,#f19b9e 75%);display:grid;place-items:center}.scwms-donut>div{width:102px;height:102px;border-radius:50%;background:#fff;display:grid;place-items:center;text-align:center}.scwms-donut strong,.scwms-donut small{display:block}.scwms-donut strong{font-size:24px}.scwms-donut small{font-size:6px;color:var(--sc-muted)}
.scwms-designer{display:grid;grid-template-columns:190px minmax(0,1fr) 230px;gap:13px;min-height:610px}.scwms-design-library,.scwms-properties,.scwms-design-canvas{background:#fff;border:1px solid var(--sc-border);border-radius:16px;box-shadow:var(--sc-shadow)}.scwms-design-library,.scwms-properties{padding:15px}.scwms-design-library h3,.scwms-properties h3{margin:0 0 12px;font-size:12px}.scwms-design-library button{width:100%;border:1px solid transparent;background:#fafbfc;border-radius:10px;padding:9px;display:grid;grid-template-columns:24px 1fr;gap:7px;align-items:center;text-align:left;margin-bottom:6px;cursor:pointer;color:#414956}.scwms-design-library button:hover{border-color:var(--sc-red-border);background:var(--sc-red-soft);color:var(--sc-red)}.scwms-design-library .scwms-icon{width:17px;height:17px}.scwms-design-library button b,.scwms-design-library button small{display:block}.scwms-design-library button b{font:700 8px 'Inter'}.scwms-design-library button small{font:500 6px 'Inter';color:var(--sc-muted)}.scwms-design-library .danger-text{color:var(--sc-red)}.scwms-design-canvas{overflow:hidden}.scwms-canvas-toolbar{height:44px;border-bottom:1px solid var(--sc-border);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 13px;font-size:7px;color:var(--sc-muted)}.scwms-canvas-toolbar b{color:#252a33;font-size:8px}.scwms-design-grid{min-height:566px;padding:18px;display:grid;grid-template-columns:repeat(4,minmax(100px,1fr));grid-auto-rows:84px;gap:16px;background-image:radial-gradient(#d7dbe1 .7px,transparent .7px);background-size:14px 14px}.scwms-design-rack{border:1px solid #d7dbe0;border-radius:10px;background:#fff;padding:9px;cursor:pointer;text-align:left;display:flex;flex-direction:column;justify-content:center;transition:transform .15s,box-shadow .15s,border .15s}.scwms-design-rack:hover{transform:translateY(-1px);box-shadow:0 10px 18px rgba(20,26,36,.06)}.scwms-design-rack strong{font:700 8px 'Inter';margin-bottom:3px}.scwms-design-rack>span{font:500 6px 'Inter';color:var(--sc-muted)}.scwms-design-rack.is-selected{border:2px solid var(--sc-red);box-shadow:0 0 0 4px var(--sc-red-soft)}.scwms-design-rack.status-blocked{background:#fff4f4}.scwms-design-rack.status-maintenance{background:#fff9e8}.scwms-design-rack.status-available{background:#fbfffc}.scwms-design-cells{display:grid;grid-template-columns:repeat(var(--rack-cols,4),minmax(0,1fr));grid-template-rows:repeat(var(--rack-rows,1),minmax(8px,1fr));gap:3px;margin-top:7px;min-height:11px}.scwms-design-cells i{min-height:8px;height:auto;border-radius:3px;background:#d7ecd9}.scwms-design-rack.status-blocked .scwms-design-cells i{background:#efb1b1}.scwms-design-rack.status-maintenance .scwms-design-cells i{background:#f0d697}.scwms-properties label,.scwms-form label{display:block;font-size:7px;color:#69717d;font-weight:700;margin-bottom:10px}.scwms-properties input,.scwms-properties select,.scwms-form input,.scwms-form select,.scwms-form textarea{width:100%;margin-top:5px;border:1px solid var(--sc-border);border-radius:9px;padding:9px;font:500 8px 'Inter';background:#fff;outline:none}.scwms-properties input:focus,.scwms-properties select:focus,.scwms-form input:focus,.scwms-form select:focus,.scwms-form textarea:focus{border-color:var(--sc-red-border);box-shadow:0 0 0 3px var(--sc-red-soft)}.scwms-form-two{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.scwms-timeline{display:grid}.scwms-event{display:grid;grid-template-columns:115px 1fr 120px;gap:12px;padding:11px;border-bottom:1px solid #edf0f2;font-size:8px}.scwms-event:last-child{border-bottom:0}.scwms-event time{color:var(--sc-muted)}.scwms-event .who{font-weight:700}.scwms-timeline .empty{text-align:center;padding:36px;color:var(--sc-muted);font-size:8px}
.scwms-profile-card{background:#fff;border:1px solid var(--sc-border);border-radius:18px;padding:22px;box-shadow:var(--sc-shadow)}.scwms-profile-identity{display:flex;align-items:center;gap:13px;padding-bottom:18px;border-bottom:1px solid var(--sc-border)}.scwms-profile-avatar{width:52px;height:52px;border-radius:15px;background:var(--sc-red-soft);color:var(--sc-red);display:grid;place-items:center;font-size:14px;font-weight:800}.scwms-profile-identity h2{font-size:17px;margin:0 0 3px}.scwms-profile-identity p{font-size:8px;color:var(--sc-muted);margin:0}.scwms-profile-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;padding:18px 0}.scwms-profile-facts>div{background:#fafbfc;border:1px solid #eef0f2;border-radius:11px;padding:11px}.scwms-profile-facts small,.scwms-profile-facts strong{display:block}.scwms-profile-facts small{font-size:6px;text-transform:uppercase;letter-spacing:.05em;color:var(--sc-muted);margin-bottom:5px}.scwms-profile-facts strong{font-size:8px}
.scwms-modal{position:fixed;inset:0;background:rgba(17,20,27,.42);display:none;align-items:center;justify-content:center;padding:20px;z-index:100}.scwms-modal.is-open{display:flex;animation:scwmsFade .15s ease}.scwms-modal-card{width:min(500px,100%);background:#fff;border-radius:20px;padding:22px;position:relative;box-shadow:0 30px 90px rgba(0,0,0,.22)}.scwms-modal-card h2{font-size:20px;margin:12px 0 4px}.scwms-modal-card p{font-size:8px;color:var(--sc-muted)}.scwms-modal-close{position:absolute;right:13px;top:10px;border:0;background:transparent;font-size:24px;cursor:pointer;color:#777}.scwms-toast{position:fixed;right:22px;bottom:22px;background:#15171c;color:#fff;border-radius:11px;padding:11px 14px;font-size:8px;font-weight:700;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s;z-index:120}.scwms-toast.is-visible{opacity:1;transform:none}
.scwms-login-page{height:100dvh!important;min-height:100vh!important;overflow:hidden!important}.scwms-login-shell{height:100dvh;min-height:100vh;box-sizing:border-box;overflow:auto;display:grid;place-items:center;background:linear-gradient(145deg,#fafafa,#fff3f3);font-family:'Inter',Arial,sans-serif;padding:20px}.scwms-login-card{box-sizing:border-box;width:min(420px,100%);background:#fff;border:1px solid var(--sc-border);border-radius:22px;padding:30px;box-shadow:0 25px 75px rgba(17,17,17,.08)}.scwms-login-card .scwms-brand{text-align:center;font-size:24px;padding-bottom:10px}.scwms-login-card h1{font-size:22px;margin:10px 0 5px}.scwms-login-card p{font-size:9px;color:var(--sc-muted)}.scwms-login-card label{font-size:8px;font-weight:700}.scwms-login-card input[type=text],.scwms-login-card input[type=password],.scwms-login-card input[type=text][name="pwd"]{box-sizing:border-box;width:100%;border:1px solid var(--sc-border);border-radius:10px;padding:10px;margin-top:5px}.scwms-login-card .login-password{position:relative}.scwms-login-card .login-password input{padding-right:46px!important}.scwms-password-toggle{position:absolute;right:8px;bottom:6px;width:34px;height:34px;border:0;background:transparent;color:#667080;border-radius:8px;display:grid;place-items:center;cursor:pointer;padding:0}.scwms-password-toggle:hover{background:#f3f5f7;color:#20242c}.scwms-password-toggle:focus-visible{outline:2px solid var(--sc-red);outline-offset:1px}.scwms-password-toggle svg{width:19px;height:19px;display:block}.scwms-login-card input[type=submit]{width:100%;border:0;background:var(--sc-red);color:#fff;border-radius:10px;padding:11px;font-weight:800;cursor:pointer}@media(max-height:620px){.scwms-login-shell{place-items:start center;padding-top:24px;padding-bottom:24px}}
@media(max-width:1250px){.scwms-kpi-grid{grid-template-columns:1fr 1fr}.scwms-grid.supervisor-grid,.scwms-grid.picking-grid,.scwms-grid.packing-grid,.scwms-grid.racks-grid{grid-template-columns:1fr 1fr}.scwms-grid.supervisor-grid>:last-child,.scwms-grid.picking-grid>:last-child{grid-column:1/-1}.scwms-grid.packing-bottom{grid-template-columns:1fr 1fr}.scwms-grid.packing-bottom>:last-child{grid-column:1/-1}.scwms-designer{grid-template-columns:160px minmax(0,1fr)}.scwms-properties{grid-column:1/-1}.scwms-flow{grid-template-columns:repeat(3,1fr)}.scwms-flow:before{display:none}.scwms-summary-strip{grid-template-columns:repeat(3,1fr)}.scwms-summary-strip>div{border-bottom:1px solid var(--sc-border)}}
@media(max-width:930px){.scwms-app{display:block}.scwms-sidebar{position:fixed;inset:0 auto 0 0;flex:none;min-width:258px;width:258px;height:100vh;transform:translateX(-100%);transition:transform .2s;z-index:60}.scwms-sidebar.is-open{transform:none}.scwms-mobile-close{display:block;position:absolute;right:9px;top:10px;border:0;background:transparent;font-size:24px;cursor:pointer}.scwms-main{width:100%;margin-left:0}.scwms-menu-btn{display:block;margin-right:auto;border:1px solid var(--sc-border);background:#fff;border-radius:10px;width:40px;height:40px}.scwms-topbar{padding:0 14px}.scwms-search{display:none}.scwms-content{padding:18px}.scwms-grid.main-two,.scwms-grid.audit-grid,.scwms-grid.products-three,.scwms-grid.racks-grid{grid-template-columns:1fr}.scwms-grid.supervisor-grid,.scwms-grid.picking-grid,.scwms-grid.packing-grid,.scwms-grid.packing-bottom{grid-template-columns:1fr}.scwms-grid.supervisor-grid>:last-child,.scwms-grid.picking-grid>:last-child,.scwms-grid.packing-bottom>:last-child{grid-column:auto}.scwms-designer{grid-template-columns:1fr}.scwms-design-library,.scwms-properties{order:2}.scwms-design-canvas{order:1}.scwms-design-grid{grid-template-columns:repeat(2,1fr)}.scwms-packing-focus{grid-template-columns:1fr}.scwms-audit-row{grid-template-columns:28px repeat(6,1fr)}.scwms-audit-row>span:nth-of-type(n+7){display:none}.scwms-sector-racks{grid-template-columns:repeat(2,1fr)}.scwms-profile-facts{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.scwms-content{padding:14px}.scwms-kpi-grid{grid-template-columns:1fr}.scwms-page-head{display:block}.scwms-page-head>.scwms-actions,.scwms-page-head>.scwms-btn,.scwms-page-head>.scwms-pill{margin-top:12px}.scwms-page-head h1{font-size:24px}.scwms-top-actions .scwms-ml-status{display:none}.scwms-action-hero{display:block}.scwms-action-hero .scwms-btn{margin-top:14px;width:100%}.scwms-flow{grid-template-columns:repeat(2,1fr)}.scwms-summary-strip{grid-template-columns:1fr 1fr}.scwms-detail-grid{grid-template-columns:1fr 1fr}.scwms-route{display:grid;grid-template-columns:1fr}.scwms-route>span{display:none}.scwms-phone-pair{grid-template-columns:1fr}.scwms-validation-row,.scwms-quick-actions,.scwms-timeline-flow{grid-template-columns:1fr 1fr}.scwms-timeline-flow:before{display:none}.scwms-audit-row{grid-template-columns:28px repeat(4,1fr)}.scwms-audit-row>span:nth-of-type(n+5){display:none}.scwms-sector-racks{grid-template-columns:1fr}.scwms-design-grid{grid-template-columns:1fr}.scwms-profile-facts{grid-template-columns:1fr}.scwms-event{grid-template-columns:1fr}.scwms-form-two{grid-template-columns:1fr}}


/* =============================================================
   v0.4.0 · Fidelidad visual a prototipos aprobados
   ============================================================= */

/* WordPress shell: the WMS is the page, no theme title/header spacing. */
body.scwms-page{margin:0!important;padding:0!important;background:#f7f8fa!important;overflow-x:hidden!important}
body.scwms-page .entry-header,
body.scwms-page .entry-title,
body.scwms-page .page-title,
body.scwms-page .wp-block-post-title,
body.scwms-page h1.wp-block-post-title,
body.scwms-page .wp-block-template-part,
body.scwms-page .site-header,
body.scwms-page .site-footer{display:none!important}
body.scwms-page #page,
body.scwms-page #content,
body.scwms-page #primary,
body.scwms-page .site-content,
body.scwms-page .content-area,
body.scwms-page .wp-site-blocks,
body.scwms-page .entry-content,
body.scwms-page .entry-content>*{margin:0!important;padding:0!important;max-width:none!important;width:100%!important}

.scwms-app{display:flex!important;min-height:100vh;width:100%;background:#f7f8fa!important}
.scwms-sidebar{position:sticky!important;top:0!important;left:auto!important;inset:auto!important;flex:0 0 262px!important;min-width:262px!important;width:262px!important;height:100vh!important;padding:25px 18px 18px!important;background:#fff!important;border-right:1px solid #e9ebef!important;overflow-y:auto;z-index:30!important}
.scwms-brand{font-size:20px!important;line-height:1!important;padding:4px 10px 30px!important;letter-spacing:-.045em!important;white-space:nowrap}
.scwms-nav{gap:5px!important;padding:0 0 12px!important}
.scwms-nav-item{min-height:47px!important;padding:12px 14px!important;border-radius:13px!important;font-size:13px!important;gap:13px!important}
.scwms-nav-item.is-active{background:#fff0f0!important;box-shadow:inset 3px 0 0 #d11f1f!important}
.scwms-nav-item .scwms-icon{width:19px!important;height:19px!important}
.scwms-user-card{min-height:64px!important;padding:10px 12px!important;border-radius:15px!important}
.scwms-avatar{width:40px!important;height:40px!important;font-size:12px!important}
.scwms-user-card strong{font-size:11px!important}.scwms-user-card small{font-size:9px!important}

.scwms-main{position:relative!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;margin:0!important;min-height:100vh!important;background:#f7f8fa!important}
/* Desktop top controls float in the title zone, as in the references. */
.scwms-topbar{position:absolute!important;top:28px!important;left:0!important;right:0!important;height:42px!important;min-height:42px!important;padding:0 30px!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:25!important;pointer-events:none}
.scwms-topbar>*{pointer-events:auto}
.scwms-topbar .scwms-menu-btn{position:absolute;left:22px;top:0}
.scwms-ml-status{font-size:10px!important;padding:9px 15px!important;border-radius:999px!important;background:#fff!important;border:1px solid #e5e8ed!important;color:#343b47!important;box-shadow:0 5px 18px rgba(25,31,42,.025)!important}
.scwms-ml-status i{width:8px!important;height:8px!important}
.scwms-ml-status:not(.is-connected){background:#fff4f4!important;border-color:#f2caca!important;color:#bd1c1c!important}
.scwms-notification{position:absolute!important;right:30px!important;top:-1px!important;width:44px!important;height:44px!important;background:#fff!important;box-shadow:0 7px 22px rgba(20,26,36,.045)!important}
.scwms-search{display:none!important}

.scwms-content{width:100%!important;max-width:1540px!important;margin:0 auto!important;padding:31px 30px 40px!important;min-width:0!important}
.scwms-page-head{min-height:62px!important;margin:0 0 17px!important;padding-right:310px!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important}
.scwms-page-head h1{font-size:28px!important;line-height:1.08!important;margin:0 0 7px!important;letter-spacing:-.045em!important;font-weight:800!important;color:#151820!important}
.scwms-page-head p{font-size:11px!important;line-height:1.55!important;color:#747d8b!important;max-width:720px!important}
.scwms-page-head .scwms-actions{margin-left:auto}

.scwms-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;margin-bottom:16px!important}
.scwms-kpi{min-height:112px!important;padding:17px 18px!important;border-radius:15px!important;border:1px solid #e7e9ed!important;box-shadow:0 8px 24px rgba(20,26,36,.035)!important;gap:13px!important;align-items:flex-start!important}
.scwms-kpi-icon{width:43px!important;height:43px!important;border-radius:12px!important}
.scwms-kpi small{font-size:9px!important;color:#363d49!important}.scwms-kpi strong{font-size:24px!important;margin:8px 0 7px!important}.scwms-kpi em{font-size:8px!important}
.scwms-panel{border-radius:15px!important;border:1px solid #e7e9ed!important;padding:16px!important;box-shadow:0 8px 24px rgba(20,26,36,.035)!important}
.scwms-panel-head{margin-bottom:13px!important}.scwms-panel-head h3{font-size:13px!important}.scwms-panel-head p{font-size:8px!important}
.scwms-grid{gap:16px!important}.scwms-space-top{margin-top:16px!important}
.scwms-grid.main-two{grid-template-columns:minmax(0,1.38fr) minmax(330px,.92fr)!important}
.scwms-line-chart{height:230px!important}
.scwms-table th{font-size:7px!important}.scwms-table td{font-size:8px!important;padding:10px 8px!important}

/* Local toolbars belong to Pedidos/Productos, not to every screen. */
.scwms-local-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-2px 0 16px}
.scwms-local-search{width:min(460px,48%);height:44px;border:1px solid #dfe3e8;background:#fff;border-radius:11px;display:flex;align-items:center;gap:10px;padding:0 13px;color:#7f8997;box-shadow:0 4px 14px rgba(20,26,36,.02)}
.scwms-local-search .scwms-icon{width:18px;height:18px}.scwms-local-search input{width:100%;border:0!important;background:transparent!important;outline:0!important;box-shadow:none!important;padding:0!important;font:500 10px 'Inter',sans-serif;color:#303640}
.scwms-local-search input::placeholder{color:#9aa2ad}

/* v0.6.0: el menú se rige exclusivamente por permisos individuales; el perfil ya no oculta accesos concedidos. */
@media (max-width:1250px){
  .scwms-page-head{padding-right:270px!important}
  .scwms-content{padding-left:24px!important;padding-right:24px!important}
  .scwms-grid.main-two{grid-template-columns:1fr 1fr!important}
}
@media (max-width:980px){
  .scwms-app{display:block!important}
  .scwms-sidebar{position:fixed!important;inset:0 auto 0 0!important;width:264px!important;min-width:264px!important;transform:translateX(-100%)!important;transition:transform .2s ease!important;z-index:70!important}
  .scwms-sidebar.is-open{transform:translateX(0)!important}
  .scwms-main{width:100%!important}
  .scwms-topbar{position:sticky!important;top:0!important;height:62px!important;background:rgba(247,248,250,.94)!important;backdrop-filter:blur(12px)!important;border-bottom:1px solid #e7e9ed!important;padding:0 16px!important;justify-content:center!important;z-index:50!important}
  .scwms-menu-btn{display:block!important;position:absolute!important;left:16px!important;top:11px!important;width:40px!important;height:40px!important}
  .scwms-notification{right:16px!important;top:9px!important}
  .scwms-content{padding:20px 18px 34px!important}
  .scwms-page-head{min-height:0!important;padding-right:0!important;margin-bottom:18px!important}
  .scwms-page-head h1{font-size:26px!important}
  .scwms-grid.main-two,.scwms-grid.audit-grid,.scwms-grid.supervisor-grid,.scwms-grid.picking-grid,.scwms-grid.packing-grid,.scwms-grid.packing-bottom,.scwms-grid.products-three,.scwms-grid.racks-grid{grid-template-columns:1fr!important}
  .scwms-kpi-grid{grid-template-columns:1fr 1fr!important}
  .scwms-local-search{width:100%;max-width:none}
}
@media (max-width:620px){
  .scwms-topbar .scwms-ml-status{display:none!important}
  .scwms-content{padding:16px 13px 28px!important}
  .scwms-page-head h1{font-size:23px!important}.scwms-page-head p{font-size:10px!important}
  .scwms-kpi-grid{grid-template-columns:1fr!important;gap:11px!important}
  .scwms-kpi{min-height:98px!important}
  .scwms-local-toolbar{align-items:stretch;flex-direction:column}
  .scwms-local-toolbar .scwms-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .scwms-local-toolbar>.scwms-btn{width:100%}
}


/* =============================================================
   v0.5.0 — standalone application shell
   The /wms/ route no longer inherits any theme title/container.
   ============================================================= */
html,body.scwms-page{margin:0!important;padding:0!important;width:100%!important;min-width:0!important;min-height:100%!important;background:#f7f8fa!important}
body.scwms-page{font-family:'Inter',Arial,sans-serif!important}
body.scwms-page .scwms-app{width:100vw!important;min-height:100vh!important;margin:0!important;padding:0!important}
@media(min-width:981px){
  body.scwms-page .scwms-sidebar{flex:0 0 258px!important;min-width:258px!important;width:258px!important;padding:28px 18px 18px!important}
  body.scwms-page .scwms-main{width:calc(100vw - 258px)!important;max-width:calc(100vw - 258px)!important}
  body.scwms-page .scwms-content{max-width:none!important;width:100%!important;padding:34px 28px 38px!important}
  body.scwms-page .scwms-page-head{padding-right:230px!important;min-height:58px!important;margin-bottom:15px!important}
  body.scwms-page .scwms-topbar{top:26px!important;padding:0 28px!important}
  body.scwms-page .scwms-notification{right:28px!important}
  body.scwms-page .scwms-brand{padding-top:0!important;padding-bottom:34px!important;font-size:21px!important}
}


/* =============================================================
   v0.6.0 — APB usability + permission-consistent navigation
   ============================================================= */
.scwms-guide{display:flex;align-items:center;gap:10px;margin:-5px 0 15px;padding:10px 13px;border:1px solid #e7e9ed;border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(20,26,36,.025);color:#555f6d}
.scwms-guide>span{font-size:17px;line-height:1}.scwms-guide p{margin:0;font-size:9px;font-weight:600;line-height:1.45;color:#626b79}
.scwms-filter-pill{min-width:142px!important;padding:8px 31px 8px 11px!important;appearance:auto!important;background:#fff!important;color:#606978!important;white-space:nowrap!important}
.scwms-nav-item{min-height:45px}.scwms-nav-item span{white-space:nowrap}.scwms-nav-item .scwms-icon{stroke-width:1.8}

.scwms-designer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.scwms-history-actions,.scwms-zoom-actions{display:flex;align-items:center;gap:7px}.scwms-tool-btn{appearance:none;border:1px solid #e2e5e9;background:#fff;color:#4d5664;border-radius:10px;min-height:36px;padding:0 11px;font:700 8px 'Inter';cursor:pointer}.scwms-tool-btn:hover{border-color:#efb9b9;background:#fff6f6;color:var(--sc-red)}.scwms-tool-btn:disabled{opacity:.35;cursor:not-allowed}.scwms-zoom-actions>span{min-width:44px;text-align:center;font-size:8px;font-weight:700;color:#626b78}.scwms-canvas-help{display:flex;align-items:center;gap:8px;color:#626b78;font-size:8px}.scwms-canvas-help span{font-size:15px}
.scwms-designer-apb{grid-template-columns:210px minmax(560px,1fr) 235px!important;min-height:650px!important}
.scwms-design-library h3,.scwms-properties h3{font-size:12px!important;margin-bottom:4px!important}.scwms-library-help{font-size:7px;color:#808895;margin:0 0 12px}.scwms-design-library button[draggable=true]{grid-template-columns:28px 1fr auto!important;cursor:grab!important;min-height:54px}.scwms-design-library button[draggable=true]:active{cursor:grabbing!important}.scwms-design-library button em{font:600 6px 'Inter';font-style:normal;color:#9aa1ab}.scwms-library-tip{margin-top:10px;padding:9px;border-radius:10px;background:#fff7e8;color:#75581d;font-size:7px;line-height:1.45}
.scwms-design-canvas{min-width:0}.scwms-canvas-toolbar>span{display:flex;align-items:center;gap:6px}.scwms-unsaved-dot{width:7px;height:7px;border-radius:50%;background:#b6bdc7}.scwms-unsaved-dot.is-dirty{background:var(--sc-amber)}
.scwms-design-viewport{height:604px;overflow:hidden!important;background:#fbfcfd;position:relative}.scwms-design-grid{position:relative!important;display:block!important;width:980px!important;height:760px!important;min-width:0!important;min-height:0!important;padding:0!important;background-image:radial-gradient(#d8dde3 .8px,transparent .8px)!important;background-size:16px 16px!important;transform-origin:0 0;will-change:transform}
.scwms-design-grid.is-drop-target{box-shadow:inset 0 0 0 3px rgba(197,31,31,.16);background-color:#fffafa!important}.scwms-empty-canvas{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;gap:5px;text-align:center;color:#8b929d;pointer-events:none}.scwms-empty-canvas span{font-size:28px}.scwms-empty-canvas b{font-size:11px;color:#626b78}.scwms-empty-canvas small{font-size:7px}.scwms-design-grid.has-items .scwms-empty-canvas{display:none}
.scwms-design-item{position:absolute!important;margin:0!important;display:block!important;border:1px solid #d7dce2!important;border-radius:12px!important;background:#fff!important;padding:0!important;cursor:grab!important;text-align:left!important;transition:box-shadow .12s,border-color .12s!important;user-select:none;touch-action:none;overflow:visible!important}.scwms-design-item:active{cursor:grabbing!important}.scwms-design-item.is-selected{border:2px solid var(--sc-red)!important;box-shadow:0 0 0 4px rgba(197,31,31,.08),0 12px 28px rgba(20,26,36,.08)!important;z-index:5}.scwms-design-item-body{width:100%;height:100%;padding:12px;display:flex;flex-direction:column;justify-content:center}.scwms-design-item strong{font-size:9px!important;margin:0 0 3px!important;color:#232832}.scwms-design-item span{font:500 6px 'Inter'!important;color:#747d8a!important}.scwms-design-item .scwms-design-cells{margin-top:8px!important;flex:1;max-height:55%;align-content:stretch}.scwms-design-item .scwms-design-cells i{min-height:8px!important}.scwms-design-item.status-available{background:#fbfffc!important}.scwms-design-item.status-occupied{background:#fbfcfd!important}.scwms-design-item.status-maintenance{background:#fff9ea!important}.scwms-design-item.status-blocked{background:#fff3f3!important}
.scwms-design-item.type-aisle{background:repeating-linear-gradient(90deg,#f4f6f8 0,#f4f6f8 28px,#e5e9ee 29px,#e5e9ee 46px)!important;border-style:dashed!important}.scwms-design-item.type-aisle .scwms-design-item-body{align-items:center;text-align:center}.scwms-design-item.type-reception{background:#effbf3!important}.scwms-design-item.type-packing-zone{background:#fff1f1!important}.scwms-design-item.type-dispatch-zone{background:#f3efff!important}
.scwms-resize-handle{display:none;position:absolute;right:-6px;bottom:-6px;width:14px;height:14px;border-radius:4px;background:var(--sc-red);border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.18);cursor:nwse-resize}.scwms-design-item.is-selected .scwms-resize-handle{display:block}
.scwms-no-selection{min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;border:1px dashed #dce0e5;border-radius:12px;background:#fbfcfd;color:#7b8491}.scwms-no-selection span{font-size:26px}.scwms-no-selection b{font-size:9px}.scwms-no-selection small{font-size:7px;line-height:1.4}.scwms-properties-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:5px 0 12px}.scwms-tool-action{border:1px solid #e5e7eb;background:#fff;border-radius:9px;padding:9px 5px;display:grid;gap:3px;place-items:center;font:700 7px 'Inter';cursor:pointer;color:#505967}.scwms-tool-action:hover{background:#f7f8fa}.scwms-tool-action.danger{color:var(--sc-red);border-color:#f0d1d1}.scwms-advanced-properties{border-top:1px solid #eceef1;border-bottom:1px solid #eceef1;padding:9px 0;margin:3px 0 11px}.scwms-advanced-properties summary{cursor:pointer;font:700 7px 'Inter';color:#69727e;margin-bottom:8px}.scwms-properties [hidden]{display:none!important}
.scwms-designer.is-preview .scwms-design-library,.scwms-designer.is-preview .scwms-properties{display:none!important}.scwms-designer.is-preview{grid-template-columns:1fr!important}.scwms-designer.is-preview .scwms-design-item{cursor:default!important}.scwms-designer.is-preview .scwms-resize-handle{display:none!important}
@media(max-width:1250px){.scwms-designer-apb{grid-template-columns:190px minmax(520px,1fr)!important}.scwms-designer-apb .scwms-properties{grid-column:1/-1!important}.scwms-designer-toolbar{flex-wrap:wrap}.scwms-canvas-help{order:3;width:100%}}
@media(max-width:980px){.scwms-guide{margin-top:-2px}.scwms-designer-apb{grid-template-columns:1fr!important}.scwms-design-library,.scwms-properties{order:initial!important}.scwms-design-viewport{height:560px}.scwms-designer-toolbar{align-items:stretch}.scwms-history-actions,.scwms-zoom-actions{flex-wrap:wrap}}
@media(max-width:620px){.scwms-guide{align-items:flex-start}.scwms-guide p{font-size:8px}.scwms-designer-toolbar{display:grid}.scwms-canvas-help{width:auto}.scwms-tool-btn span{display:none}.scwms-design-viewport{height:500px}.scwms-design-library{display:grid;grid-template-columns:1fr 1fr;gap:7px}.scwms-design-library h3,.scwms-design-library .scwms-library-help,.scwms-library-tip{grid-column:1/-1}.scwms-design-library button[draggable=true]{margin:0!important}.scwms-properties-actions{grid-template-columns:1fr 1fr 1fr}}

/* v0.7.0 · Flujo APB para preparación/empaque y PDA */
.scwms-route-explain{display:grid;gap:10px}
.scwms-route-explain>div{display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:start;padding:12px;border:1px solid var(--sc-border);border-radius:12px;background:#fbfbfc}
.scwms-route-explain>div>span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--sc-red-soft);color:var(--sc-red);font-weight:800;font-size:11px}
.scwms-route-explain b,.scwms-route-explain small{display:block}.scwms-route-explain b{font-size:9px;margin-bottom:3px}.scwms-route-explain small{font-size:7px;color:var(--sc-muted);line-height:1.5}

.scwms-pda-app{min-height:100vh;background:#f4f5f7;font-family:'Inter',Arial,sans-serif;color:#20242c;padding-bottom:26px}
.scwms-pda-top{position:sticky;top:0;z-index:20;min-height:70px;padding:14px 18px;background:#fff;border-bottom:1px solid #e7e9ed;display:flex;align-items:center;justify-content:space-between;gap:16px}
.scwms-pda-brand{font-size:16px;font-weight:800;letter-spacing:-.04em}.scwms-pda-brand span{color:var(--sc-red)}
.scwms-pda-user{text-align:right}.scwms-pda-user b,.scwms-pda-user small{display:block}.scwms-pda-user b{font-size:11px}.scwms-pda-user small{font-size:8px;color:var(--sc-green);margin-top:3px}
.scwms-pda-main{width:min(680px,100%);margin:0 auto;padding:18px;display:grid;gap:14px}
.scwms-pda-title{display:flex;align-items:center;gap:12px;padding:8px 2px}.scwms-pda-title>span{width:48px;height:48px;border-radius:15px;background:var(--sc-red-soft);display:grid;place-items:center;font-size:24px}.scwms-pda-title h1{margin:0 0 4px;font-size:24px;letter-spacing:-.045em}.scwms-pda-title p{margin:0;color:var(--sc-muted);font-size:11px;line-height:1.45}
.scwms-pda-card{background:#fff;border:1px solid var(--sc-border);border-radius:20px;padding:20px;box-shadow:var(--sc-shadow)}
.scwms-pda-card.primary{border-color:#eadede}.scwms-pda-card h2{font-size:22px;line-height:1.15;letter-spacing:-.04em;margin:12px 0 8px}.scwms-pda-card h3{font-size:15px;margin:0 0 8px}.scwms-pda-card p{margin:0;color:var(--sc-muted);font-size:11px;line-height:1.55}
.scwms-pda-state{display:inline-flex;padding:7px 10px;border-radius:999px;background:var(--sc-green-soft);color:#187840;font-size:9px;font-weight:800;letter-spacing:.03em}
.scwms-dispatch-cancelled-alert{padding:22px 18px;border-radius:16px;background:#fbe9e9;border:2px solid #c51f1f;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}
.scwms-dispatch-cancelled-alert .scwms-pda-state.is-cancelled{background:#c51f1f;color:#fff;font-size:11px;padding:8px 14px}
.scwms-dispatch-cancelled-alert h2{color:#791f1f!important;margin:4px 0!important}
.scwms-dispatch-cancelled-alert p{color:#791f1f!important;font-size:12px!important;max-width:280px}
.scwms-dispatch-cancelled-alert .scwms-btn{background:#791f1f;border-color:#791f1f}
.scwms-pda-steps{display:grid;gap:10px;margin-top:18px}.scwms-pda-steps>div{display:grid;grid-template-columns:38px 1fr;gap:12px;align-items:center;border:1px solid #eceef1;border-radius:14px;padding:12px;background:#fbfbfc}.scwms-pda-steps i{width:38px;height:38px;border-radius:12px;background:var(--sc-red-soft);color:var(--sc-red);display:grid;place-items:center;font-style:normal;font-size:13px;font-weight:800}.scwms-pda-steps b,.scwms-pda-steps small{display:block}.scwms-pda-steps b{font-size:12px;margin-bottom:3px}.scwms-pda-steps small{font-size:9px;color:var(--sc-muted);line-height:1.4}
.scwms-pda-problem{width:100%;min-height:54px;border:1px solid #f0c8c8;background:#fff;color:var(--sc-red);border-radius:16px;font:800 12px 'Inter';cursor:pointer}.scwms-pda-problem:active{transform:scale(.99)}
.scwms-pda-logout{display:block;text-align:center;color:#737b87;font-size:10px;font-weight:700;padding:10px}
@media(max-width:520px){.scwms-pda-top{padding:12px 14px}.scwms-pda-main{padding:14px}.scwms-pda-title h1{font-size:21px}.scwms-pda-card{padding:17px}.scwms-pda-card h2{font-size:20px}.scwms-pda-steps>div{grid-template-columns:34px 1fr;padding:11px}.scwms-pda-steps i{width:34px;height:34px}}


/* =============================================================
   v0.7.1 — sidebar fijo + compatibilidad de diseños anteriores
   ============================================================= */
@media(min-width:931px){
  body.scwms-page .scwms-app{
    display:block!important;
    min-height:100vh!important;
  }
  body.scwms-page .scwms-sidebar{
    position:fixed!important;
    inset:0 auto 0 0!important;
    top:0!important;
    left:0!important;
    width:258px!important;
    min-width:258px!important;
    height:100vh!important;
    max-height:100vh!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    padding:24px 18px 16px!important;
    background:#fff!important;
    border-right:1px solid #e9ebef!important;
    z-index:70!important;
  }
  body.scwms-page .scwms-brand{
    flex:0 0 auto!important;
    padding:0 10px 22px!important;
  }
  body.scwms-page .scwms-nav{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:0 3px 10px 1px!important;
    scrollbar-width:thin!important;
    overscroll-behavior:contain!important;
  }
  body.scwms-page .scwms-sidebar-bottom{
    flex:0 0 auto!important;
    margin-top:10px!important;
    padding-top:8px!important;
    background:#fff!important;
  }
  body.scwms-page .scwms-main{
    margin-left:258px!important;
    width:calc(100vw - 258px)!important;
    max-width:calc(100vw - 258px)!important;
    min-height:100vh!important;
  }
  body.scwms-page .scwms-nav-item{
    min-height:42px!important;
    padding:10px 12px!important;
  }
}

/* =============================================================
   v0.7.2 — responsive real: los bloques se reacomodan, no se aplastan
   ============================================================= */
.scwms-panel,
.scwms-panel *,
.scwms-kpi,
.scwms-kpi *,
.scwms-grid > *,
.scwms-stack > *{
  min-width:0;
}
.scwms-panel p,
.scwms-panel small,
.scwms-panel b,
.scwms-panel strong,
.scwms-empty-state,
.scwms-empty-state span{
  word-break:normal!important;
  overflow-wrap:break-word!important;
  hyphens:none!important;
}

/* El texto explicativo siempre vive a la derecha del número. */
.scwms-route-explain>div{
  grid-template-columns:30px minmax(0,1fr)!important;
  grid-template-areas:"number title" "number copy";
  align-items:start!important;
}
.scwms-route-explain>div>span{grid-area:number}
.scwms-route-explain>div>b{grid-area:title;min-width:0}
.scwms-route-explain>div>small{grid-area:copy;min-width:0;width:auto!important;max-width:none!important}

/* Pantallas medianas de escritorio: primero reducimos columnas. */
@media (max-width:1320px) and (min-width:931px){
  body.scwms-page .scwms-content{padding-left:22px!important;padding-right:22px!important}
  body.scwms-page .scwms-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.scwms-page .scwms-grid.supervisor-grid,
  body.scwms-page .scwms-grid.picking-grid,
  body.scwms-page .scwms-grid.packing-bottom{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.scwms-page .scwms-grid.supervisor-grid>:last-child,
  body.scwms-page .scwms-grid.picking-grid>:last-child,
  body.scwms-page .scwms-grid.packing-bottom>:last-child{grid-column:1/-1!important}
}

/* Cuando el espacio útil ya es chico, una columna completa es más legible. */
@media (max-width:1180px) and (min-width:931px){
  body.scwms-page .scwms-grid.main-two,
  body.scwms-page .scwms-grid.audit-grid,
  body.scwms-page .scwms-grid.packing-grid,
  body.scwms-page .scwms-grid.racks-grid{grid-template-columns:1fr!important}
  body.scwms-page .scwms-grid.products-three{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.scwms-page .scwms-page-head{padding-right:235px!important}
}

/* Tablet: menú desplegable y todos los paneles a ancho cómodo. */
@media (max-width:930px){
  body.scwms-page .scwms-content{width:100%!important;max-width:none!important;padding:18px 16px 30px!important}
  body.scwms-page .scwms-page-head{display:block!important;padding-right:0!important}
  body.scwms-page .scwms-page-head .scwms-actions{margin-top:12px!important;margin-left:0!important}
  body.scwms-page .scwms-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.scwms-page .scwms-grid.main-two,
  body.scwms-page .scwms-grid.audit-grid,
  body.scwms-page .scwms-grid.supervisor-grid,
  body.scwms-page .scwms-grid.picking-grid,
  body.scwms-page .scwms-grid.packing-grid,
  body.scwms-page .scwms-grid.packing-bottom,
  body.scwms-page .scwms-grid.products-three,
  body.scwms-page .scwms-grid.racks-grid{grid-template-columns:1fr!important}
  body.scwms-page .scwms-grid.supervisor-grid>:last-child,
  body.scwms-page .scwms-grid.picking-grid>:last-child,
  body.scwms-page .scwms-grid.packing-bottom>:last-child{grid-column:auto!important}
  .scwms-route-explain{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .scwms-route-explain>div{height:100%}
}

/* Celular: una acción / una tarjeta por fila. */
@media (max-width:680px){
  body.scwms-page .scwms-content{padding:14px 12px 26px!important}
  body.scwms-page .scwms-kpi-grid{grid-template-columns:1fr!important}
  body.scwms-page .scwms-page-head h1{font-size:22px!important;line-height:1.15!important}
  body.scwms-page .scwms-page-head p{font-size:10px!important;line-height:1.5!important}
  .scwms-route-explain{grid-template-columns:1fr!important}
  .scwms-route-explain>div{grid-template-columns:34px minmax(0,1fr)!important;padding:12px!important}
  .scwms-route-explain>div>span{width:34px;height:34px}
  .scwms-route-explain b{font-size:10px!important}
  .scwms-route-explain small{font-size:8px!important;line-height:1.45!important}
  .scwms-panel{padding:14px!important}
  .scwms-table-wrap{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  .scwms-local-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .scwms-local-search{width:100%!important;max-width:none!important}
  .scwms-local-toolbar .scwms-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important}
  .scwms-local-toolbar .scwms-btn{width:100%!important}
}

@media (max-width:430px){
  body.scwms-page .scwms-content{padding-left:10px!important;padding-right:10px!important}
  .scwms-panel{border-radius:13px!important;padding:12px!important}
  .scwms-kpi{padding:14px!important;min-height:94px!important}
  .scwms-kpi strong{font-size:22px!important}
  .scwms-notification{right:10px!important}
}

/* v0.7.3 · selección múltiple en Diseño del depósito */
.scwms-design-item.is-selected:not(.is-primary){border:2px solid #e45a5a!important;box-shadow:0 0 0 3px rgba(197,31,31,.06)!important;z-index:4}
.scwms-design-grid.has-multi-selection .scwms-resize-handle{display:none!important}
.scwms-multi-selection{display:grid;gap:12px}.scwms-multi-selection[hidden]{display:none!important}.scwms-multi-selection-title{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;padding:12px;border:1px solid #f0d1d1;background:#fff7f7;border-radius:12px}.scwms-multi-selection-title>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#fff;color:var(--sc-red);font-size:16px}.scwms-multi-selection-title b{display:block;font-size:10px;margin-bottom:4px}.scwms-multi-selection-title small{display:block;font-size:7px;line-height:1.5;color:#747d8a}.scwms-multi-selection .scwms-properties-actions{grid-template-columns:1fr;gap:7px}.scwms-multi-selection .scwms-tool-action{justify-content:flex-start;min-height:40px}.scwms-library-tip strong{font-weight:800}

/* v0.7.4 · Plano que se ajusta solo, sin barras internas */
.scwms-design-viewport{scrollbar-width:none!important;-ms-overflow-style:none!important}
.scwms-design-viewport::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.scwms-zoom-actions #scwms-zoom-label{min-width:auto!important;color:#7b8491!important;font-weight:600!important}
@media(max-width:1250px){.scwms-design-viewport{height:560px}}
@media(max-width:980px){.scwms-design-viewport{height:520px}}
@media(max-width:620px){.scwms-design-viewport{height:430px}}

/* v0.7.8 · barra lateral organizada por secciones */
.scwms-nav-group{display:grid;gap:5px}
.scwms-nav-section{display:flex;align-items:center;gap:14px;margin:14px 10px 8px;color:#7d8593;text-transform:uppercase;font-size:9px;font-weight:800;letter-spacing:.08em}
.scwms-nav-section::after{content:'';flex:1 1 auto;height:1px;background:#eceff3;border-radius:999px}
.scwms-nav-section span{white-space:nowrap}
body.scwms-page .scwms-nav{display:grid;gap:0!important}
body.scwms-page .scwms-nav-group + .scwms-nav-section{margin-top:18px}
@media(max-width:930px){
  .scwms-nav-section{margin:12px 10px 8px;font-size:8px}
}

/* v0.7.9 · pantallas propias para Productos */
.scwms-help-strip{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:12px 14px;border:1px solid #e5e8ed;border-radius:13px;background:#fff;color:#596271;box-shadow:0 5px 18px rgba(20,26,36,.02)}
.scwms-help-strip>span{font-size:18px;line-height:1}.scwms-help-strip>b{font-size:9px;line-height:1.5;font-weight:600}
.scwms-simple-steps{display:grid;gap:10px}.scwms-simple-steps>div{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:start;padding:11px;border:1px solid #eceef1;border-radius:12px;background:#fafbfc}.scwms-simple-steps>div>span{width:32px;height:32px;border-radius:10px;background:#fff1f1;color:#c51f1f;display:grid;place-items:center;font-size:10px;font-weight:800}.scwms-simple-steps p{margin:0;min-width:0}.scwms-simple-steps b,.scwms-simple-steps small{display:block}.scwms-simple-steps b{font-size:9px;margin-bottom:3px}.scwms-simple-steps small{font-size:8px;line-height:1.45;color:#747c8a}
@media(max-width:680px){.scwms-help-strip{align-items:flex-start}.scwms-help-strip>b{font-size:9px}}

/* =============================================================
   v0.8.0 · Despacho APB para computadora
   ============================================================= */
.scwms-dispatch-help{margin-bottom:16px}
.scwms-dispatch-grid{grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:16px}
.scwms-dispatch-scan-panel{display:flex;flex-direction:column}
.scwms-dispatch-scanner{margin-bottom:14px}
.scwms-dispatch-checks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:2px 0 14px}
.scwms-dispatch-checks>div{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;align-items:center;border:1px solid var(--sc-border);border-radius:12px;background:#fafbfc;padding:10px;min-height:66px;transition:.18s ease}
.scwms-dispatch-checks i{width:30px;height:30px;border-radius:10px;background:#f0f2f4;color:#747d89;display:grid;place-items:center;font-style:normal;font-size:9px;font-weight:800}
.scwms-dispatch-checks b,.scwms-dispatch-checks small{display:block}
.scwms-dispatch-checks b{font-size:8px;color:#303641;margin-bottom:3px}
.scwms-dispatch-checks small{font-size:6.5px;line-height:1.35;color:var(--sc-muted)}
.scwms-dispatch-checks>div.is-ok{border-color:#ccebd7;background:#f4fbf6}.scwms-dispatch-checks>div.is-ok i{background:var(--sc-green-soft);color:var(--sc-green)}
.scwms-dispatch-checks>div.is-bad{border-color:#f1cccc;background:#fff7f7}.scwms-dispatch-checks>div.is-bad i{background:var(--sc-red-soft);color:var(--sc-red)}
.scwms-dispatch-confirm{min-height:44px;font-size:10px!important}
.scwms-dispatch-confirm-help{margin:8px 0 0;text-align:center;color:var(--sc-muted);font-size:7px;line-height:1.45}
.scwms-dispatch-ready-list{display:grid;gap:7px}
.scwms-dispatch-ready-item{appearance:none;width:100%;border:1px solid var(--sc-border);background:#fff;border-radius:12px;padding:11px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;text-align:left;cursor:pointer;color:var(--sc-text);font-family:'Inter',sans-serif;transition:.16s ease}
.scwms-dispatch-ready-item:hover{border-color:#e9bcbc;background:#fffafa;transform:translateY(-1px)}
.scwms-dispatch-ready-item b,.scwms-dispatch-ready-item small{display:block}.scwms-dispatch-ready-item b{font-size:9px}.scwms-dispatch-ready-item small{font-size:7px;color:var(--sc-muted);margin-top:3px}.scwms-dispatch-ready-item em{font-style:normal;font-size:7px;font-weight:800;border-radius:999px;padding:5px 8px;background:var(--sc-green-soft);color:#187840;white-space:nowrap}.scwms-dispatch-ready-item strong{font-size:15px;color:#8b93a0}
.scwms-dispatch-package-card{min-height:118px}
.scwms-dispatch-package-empty{min-height:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed #e2e5e9;border-radius:13px;background:#fafbfc;padding:16px;color:var(--sc-muted)}
.scwms-dispatch-package-empty[hidden]{display:none!important}.scwms-dispatch-package-empty span{font-size:22px;margin-bottom:7px}.scwms-dispatch-package-empty b{font-size:9px;color:#303641;margin-bottom:4px}.scwms-dispatch-package-empty small{font-size:7px}
.scwms-dispatch-package-data{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.scwms-dispatch-package-data[hidden]{display:none!important}.scwms-dispatch-package-data>div{border:1px solid var(--sc-border);background:#fafbfc;border-radius:11px;padding:11px}.scwms-dispatch-package-data small,.scwms-dispatch-package-data b{display:block}.scwms-dispatch-package-data small{font-size:7px;color:var(--sc-muted);margin-bottom:4px}.scwms-dispatch-package-data b{font-size:9px;overflow-wrap:anywhere}
.scwms-dispatch-actions button:not([disabled]){cursor:pointer}.scwms-dispatch-actions button:not([disabled]):hover{border-color:#efc5c5;background:#fffafa}
@media(max-width:1180px){.scwms-dispatch-grid{grid-template-columns:1fr}.scwms-dispatch-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.scwms-dispatch-checks{grid-template-columns:1fr}.scwms-dispatch-package-data{grid-template-columns:1fr 1fr}.scwms-dispatch-actions{grid-template-columns:1fr!important}.scwms-dispatch-timeline{grid-template-columns:repeat(2,1fr)!important}.scwms-dispatch-timeline:before{display:none!important}}
@media(max-width:480px){.scwms-dispatch-package-data{grid-template-columns:1fr}.scwms-dispatch-ready-item{grid-template-columns:minmax(0,1fr) auto}.scwms-dispatch-ready-item strong{display:none}}

/* =============================================================
   v0.8.1 · Despacho PC + PDA y control diario Flex/Colecta
   ============================================================= */
.scwms-dispatch-day-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:16px}
.scwms-dispatch-day-kpis .scwms-kpi{min-height:108px}
.scwms-dispatch-day-panel{margin-bottom:0}
.scwms-dispatch-channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.scwms-dispatch-channel-card{border:1px solid var(--sc-border);border-radius:14px;background:#fbfcfd;padding:14px}
.scwms-dispatch-channel-head{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:center}
.scwms-dispatch-channel-icon{width:38px;height:38px;border-radius:11px;background:var(--sc-red-soft);display:grid;place-items:center;font-size:18px}
.scwms-dispatch-channel-head h4{font-size:12px;margin:0 0 3px;color:#1c2028}.scwms-dispatch-channel-head p{font-size:7.5px;line-height:1.45;color:var(--sc-muted);margin:0}
.scwms-dispatch-channel-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:13px}
.scwms-dispatch-channel-counts>div{border:1px solid #eceef1;border-radius:11px;background:#fff;padding:10px}.scwms-dispatch-channel-counts small,.scwms-dispatch-channel-counts b{display:block}.scwms-dispatch-channel-counts small{font-size:7px;color:var(--sc-muted);margin-bottom:4px}.scwms-dispatch-channel-counts b{font-size:17px;color:#171a20}
.scwms-dispatch-cutoff-note{margin-top:12px;border-radius:11px;background:#fff8ea;border:1px solid #f1e1b8;padding:10px 12px;font-size:7.5px;line-height:1.45;color:#795a16}
.scwms-dispatch-problem-panel{display:flex;flex-direction:column}.scwms-dispatch-problem-action{appearance:none;border:1px solid #f0d0d0;background:#fff;border-radius:13px;padding:14px;width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:11px;align-items:center;text-align:left;color:var(--sc-text);font-family:'Inter',sans-serif;cursor:pointer;margin-top:auto}.scwms-dispatch-problem-action:hover{background:#fff8f8;border-color:#e9bebe}.scwms-dispatch-problem-action>.scwms-icon{width:24px;height:24px;color:var(--sc-red)}.scwms-dispatch-problem-action b,.scwms-dispatch-problem-action small{display:block}.scwms-dispatch-problem-action b{font-size:9px}.scwms-dispatch-problem-action small{font-size:7px;color:var(--sc-muted);margin-top:3px}.scwms-dispatch-problem-action>strong{font-size:17px;color:var(--sc-red)}

/* PDA de Despacho */
.scwms-pda-dispatch-card{display:grid;gap:14px}.scwms-pda-scan-box{border:2px solid #e9ebef;border-radius:16px;background:#fafbfc;padding:13px}.scwms-pda-scan-box input{width:100%;height:52px;border:0!important;outline:0!important;background:#fff!important;border-radius:12px;padding:0 14px!important;font:700 15px 'Inter',sans-serif;color:#1b1f27;box-shadow:inset 0 0 0 1px #e2e5e9!important}.scwms-pda-scan-box small{display:block;text-align:center;color:var(--sc-muted);font-size:9px;margin-top:8px;line-height:1.4}.scwms-pda-package{min-height:0}.scwms-pda-package .scwms-dispatch-package-empty{min-height:100px}.scwms-pda-package .scwms-dispatch-package-data{grid-template-columns:1fr 1fr}.scwms-pda-hidden-detail{display:none}.scwms-pda-dispatch-checks{grid-template-columns:1fr 1fr;margin:0}.scwms-pda-dispatch-checks>div{min-height:56px;padding:9px}.scwms-pda-dispatch-checks small{display:none}.scwms-pda-dispatch-checks b{font-size:8px;margin:0}.scwms-pda-back-desktop{display:block;text-align:center;border:1px solid var(--sc-border);border-radius:14px;background:#fff;padding:13px;color:#4b5563;text-decoration:none;font-size:10px;font-weight:700}

@media(max-width:1350px){.scwms-dispatch-day-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.scwms-dispatch-day-kpis .scwms-kpi:nth-child(n+4){grid-column:auto}}
@media(max-width:950px){.scwms-dispatch-day-kpis{grid-template-columns:1fr 1fr}.scwms-dispatch-channel-grid{grid-template-columns:1fr}.scwms-dispatch-channel-head{grid-template-columns:38px minmax(0,1fr);}.scwms-dispatch-channel-head>.scwms-pill{grid-column:1/-1;justify-self:start}}
@media(max-width:620px){.scwms-dispatch-day-kpis{grid-template-columns:1fr}.scwms-dispatch-channel-counts{grid-template-columns:1fr 1fr 1fr}.scwms-pda-package .scwms-dispatch-package-data{grid-template-columns:1fr}.scwms-pda-dispatch-checks{grid-template-columns:1fr}}

/* =============================================================
   v0.8.2 · Historial de pedidos
   ============================================================= */
.scwms-history-search-panel{padding:16px!important}
.scwms-history-search-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.scwms-history-main-search{flex:1 1 680px;max-width:760px;height:46px;border:1px solid var(--sc-border);border-radius:12px;background:#fff;display:flex;align-items:center;gap:10px;padding:0 13px;color:#7c8592}
.scwms-history-main-search .scwms-icon{width:18px;height:18px}
.scwms-history-main-search input{width:100%;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;font:500 10px 'Inter',sans-serif;color:#252b35}
.scwms-history-main-search input::placeholder{color:#9aa2ad}
.scwms-history-filters{margin-top:15px;padding-top:15px;border-top:1px solid #edf0f3}
.scwms-history-filters[hidden]{display:none!important}
.scwms-history-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.scwms-history-filter-grid label{display:grid;gap:6px;color:#586170;font-size:8px;font-weight:700}
.scwms-history-filter-grid input,.scwms-history-filter-grid select{width:100%;height:39px;border:1px solid #dfe3e8;border-radius:9px;background:#fff;padding:0 10px;color:#2b313b;font:500 9px 'Inter',sans-serif;outline:none}
.scwms-history-filter-grid input:focus,.scwms-history-filter-grid select:focus{border-color:#e4a0a0;box-shadow:0 0 0 3px rgba(197,31,31,.05)}
.scwms-history-filter-actions{display:flex;justify-content:flex-end;margin-top:11px}
.scwms-history-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 2px;color:#6f7885;font-size:9px}
.scwms-history-summary b{font-size:13px;color:#20252d;margin-right:3px}
.scwms-history-table td{vertical-align:middle}
.scwms-history-open{appearance:none;border:1px solid var(--sc-red-border);background:#fff;color:var(--sc-red);border-radius:9px;padding:7px 9px;font:700 8px 'Inter',sans-serif;cursor:pointer;white-space:nowrap}
.scwms-history-open:hover{background:var(--sc-red-soft)}
.scwms-history-late{display:block;color:var(--sc-red)!important;font-size:7px!important;font-weight:700;margin-top:4px}
.scwms-order-history-detail[hidden]{display:none!important}
.scwms-history-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;padding-bottom:15px;border-bottom:1px solid #edf0f3}
.scwms-history-detail-head>div>small{display:block;font-size:7px;font-weight:800;letter-spacing:.09em;color:#969eaa;margin-bottom:5px}
.scwms-history-detail-head h2{margin:0 0 4px;font-size:21px;letter-spacing:-.04em;color:#171a20}
.scwms-history-detail-head p{margin:0;color:#78818e;font-size:9px}
.scwms-history-facts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:15px}
.scwms-history-facts>div{border:1px solid #eceef1;background:#fafbfc;border-radius:11px;padding:11px;min-width:0}
.scwms-history-facts small,.scwms-history-facts b{display:block}.scwms-history-facts small{font-size:7px;color:#858d99;margin-bottom:5px}.scwms-history-facts b{font-size:9px;color:#272d36;overflow-wrap:anywhere}
.scwms-history-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.scwms-history-stage{position:relative;border:1px solid #e7e9ed;background:#fff;border-radius:14px;padding:14px;display:grid;grid-template-columns:38px minmax(0,1fr);gap:11px;min-width:0}
.scwms-history-stage>span{width:38px;height:38px;border-radius:11px;background:var(--sc-red-soft);display:grid;place-items:center;font-size:17px}
.scwms-history-stage h4{margin:0 0 8px;font-size:11px;color:#1d222a}.scwms-history-stage p{margin:4px 0;font-size:8px;color:#69727f;overflow-wrap:anywhere}.scwms-history-stage p b{color:#333a45}.scwms-history-stage em{display:inline-flex;margin-top:8px;border-radius:999px;background:#f2f4f6;padding:4px 7px;font-size:7px;font-weight:800;color:#606975;font-style:normal}
.scwms-history-subtitle{margin:0 0 10px;font-size:12px;color:#1d222a}
.scwms-history-problems{display:grid;gap:8px}
.scwms-history-problem{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;border:1px solid #f0dddd;background:#fffafa;border-radius:11px;padding:11px}.scwms-history-problem>span{font-size:17px}.scwms-history-problem b{font-size:9px}.scwms-history-problem p{margin:4px 0;font-size:8px;color:#5f6773;line-height:1.45}.scwms-history-problem small{display:block;font-size:7px;color:#8b929d}
.scwms-history-activity{display:grid;position:relative;padding-left:6px}
.scwms-history-activity-row{display:grid;grid-template-columns:14px 125px minmax(0,1fr);gap:9px;align-items:start;position:relative;padding:9px 0;border-bottom:1px solid #eef0f3}.scwms-history-activity-row:last-child{border-bottom:0}.scwms-history-activity-row>i{width:9px;height:9px;border-radius:50%;background:var(--sc-red);box-shadow:0 0 0 4px var(--sc-red-soft);margin-top:3px}.scwms-history-activity-row time{font-size:7px;color:#8b929d;padding-top:2px}.scwms-history-activity-row b,.scwms-history-activity-row small{display:block}.scwms-history-activity-row b{font-size:9px;color:#2a3039}.scwms-history-activity-row small{font-size:7px;color:#747c88;margin-top:3px;line-height:1.4}
@media(max-width:1180px){.scwms-history-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.scwms-history-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.scwms-history-search-row{align-items:stretch;flex-direction:column}.scwms-history-main-search{width:100%;max-width:none;flex:0 0 auto}.scwms-history-search-row>.scwms-actions{width:100%}.scwms-history-search-row>.scwms-actions .scwms-btn{flex:1}.scwms-history-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.scwms-history-stages{grid-template-columns:1fr}.scwms-history-summary{align-items:stretch;flex-direction:column}.scwms-history-summary .scwms-btn{align-self:flex-start}.scwms-history-activity-row{grid-template-columns:14px 1fr}.scwms-history-activity-row time{grid-column:2}.scwms-history-activity-row>div{grid-column:2}}
@media(max-width:520px){.scwms-history-filter-grid,.scwms-history-facts{grid-template-columns:1fr}.scwms-history-detail-head{flex-direction:column}.scwms-history-detail-head .scwms-btn{width:100%}}

/* =============================================================
   v0.8.3 · PDA de Preparación
   ============================================================= */
.scwms-picking-pda{display:grid;gap:16px}
.scwms-picking-wait-actions{display:grid;gap:9px;margin-top:18px}
.scwms-pda-secondary{min-height:50px;border:1px solid #e3e6ea;background:#fff;color:#454d59;border-radius:14px;font:800 11px 'Inter',sans-serif;cursor:pointer}
.scwms-pda-secondary:active{transform:scale(.99)}
.scwms-pda-simple-help{display:grid;gap:9px;margin-top:18px}
.scwms-pda-simple-help>div{display:grid;grid-template-columns:38px 1fr;gap:11px;align-items:center;padding:11px 12px;border-radius:14px;background:#fafbfc;border:1px solid #eceef1}
.scwms-pda-simple-help>div>span{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#fff;font-size:19px}
.scwms-pda-simple-help p{margin:0!important}.scwms-pda-simple-help b,.scwms-pda-simple-help small{display:block}.scwms-pda-simple-help b{font-size:11px;margin-bottom:3px}.scwms-pda-simple-help small{font-size:8px;line-height:1.4;color:var(--sc-muted)}
.scwms-picking-task-top{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center}
.scwms-picking-task-top small,.scwms-picking-task-top b{display:block}.scwms-picking-task-top small{font-size:7px;color:var(--sc-muted);text-transform:uppercase;letter-spacing:.05em}.scwms-picking-task-top b{font-size:13px;margin-top:3px}
.scwms-picking-progress-text{text-align:right}.scwms-picking-progress-text b{font-size:12px}.scwms-picking-progress-text small{text-transform:none;letter-spacing:0}
.scwms-pda-test-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 8px;background:#fff6e5;color:#9d6a06;border:1px solid #f1d79b;font-size:7px;font-weight:900;letter-spacing:.08em}
.scwms-pda-advance-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 8px;background:#eaf3fe;color:#1358a3;border:1px solid #bdd8f7;font-size:7px;font-weight:900;letter-spacing:.06em}
.scwms-picking-advance{margin-top:16px;padding:16px 14px;border-radius:16px;background:#f4f8ff;border:1px solid #dbe7fb;text-align:center}
.scwms-picking-advance .scwms-pda-state.is-advance{background:#e1eefe;color:#1358a3;margin-bottom:8px}
.scwms-picking-advance p{margin:0 0 12px!important;font-size:11px;color:#33415c}
.scwms-picking-advance .scwms-btn.outline{background:#fff;border:1px solid #1358a3;color:#1358a3}
.scwms-picking-advance .scwms-btn.outline:active{transform:scale(.99)}
.scwms-picking-progress{height:7px;background:#eef0f3;border-radius:999px;overflow:hidden;margin:10px 0 4px}.scwms-picking-progress i{display:block;width:0;height:100%;background:var(--sc-red);border-radius:999px;transition:width .25s ease}
.scwms-picking-instruction{text-align:center;padding:18px 6px 8px}
.scwms-picking-big-icon{width:66px;height:66px;margin:0 auto 12px;border-radius:20px;background:var(--sc-red-soft);display:grid;place-items:center;font-size:32px}
.scwms-picking-instruction>small{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:var(--sc-red);font-weight:900;margin-bottom:5px}
.scwms-picking-instruction h2{font-size:28px!important;margin:0 0 7px!important;line-height:1.08!important}.scwms-picking-instruction p{font-size:11px!important;max-width:430px;margin:0 auto!important}
.scwms-picking-product{display:grid;grid-template-columns:1fr auto;gap:4px 12px;border:1px solid #e5e8ec;background:#fafbfc;border-radius:16px;padding:14px 15px;margin-top:2px}
.scwms-picking-product small{grid-column:1/-1;font-size:7px;text-transform:uppercase;letter-spacing:.06em;color:var(--sc-muted)}.scwms-picking-product b{font-size:13px}.scwms-picking-product span{grid-column:1;font-size:8px;color:var(--sc-muted)}.scwms-picking-product strong{grid-column:2;grid-row:2/4;align-self:center;font-size:10px;padding:8px 10px;border-radius:10px;background:#fff;border:1px solid #e5e8ec;white-space:nowrap}
.scwms-picking-scan{display:grid;gap:9px;margin-top:4px}.scwms-picking-scan label{font-size:10px;font-weight:800;color:#323945}
.scwms-picking-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.scwms-picking-input-row input{min-width:0;height:54px;border:1px solid #dfe3e8!important;border-radius:13px!important;background:#fff!important;padding:0 13px!important;outline:none!important;box-shadow:none!important;font:700 13px 'Inter',sans-serif;color:#1e232b;text-transform:uppercase}.scwms-picking-input-row input:focus{border-color:#e6a5a5!important;box-shadow:0 0 0 3px #fff1f1!important}
.scwms-picking-check{min-height:54px;border:0;border-radius:13px;padding:0 14px;background:#262b33;color:#fff;font:800 10px 'Inter',sans-serif;cursor:pointer}.scwms-picking-check:active{transform:scale(.99)}
.scwms-pda-camera{min-height:44px;border:1px solid #e3e6ea;border-radius:12px;background:#fff;color:#4a5360;font:700 10px 'Inter',sans-serif;cursor:pointer}
.scwms-picking-test-code{display:block;text-align:center;padding:7px 9px;border-radius:9px;background:#fff8e8;color:#9a6808;border:1px solid #f1ddb2;font-size:8px;font-weight:800}
.scwms-picking-feedback{min-height:38px;display:flex;align-items:center;justify-content:center;text-align:center;padding:9px;border-radius:11px;background:#f6f7f9;color:#737c89;font-size:9px;line-height:1.4}.scwms-picking-feedback.is-ok{background:#ebf9f0;color:#187840;border:1px solid #ccebd6}.scwms-picking-feedback.is-bad{background:#fff1f1;color:var(--sc-red);border:1px solid var(--sc-red-border)}
.scwms-picking-quantity-done,.scwms-picking-finish{min-height:54px;font-size:12px!important}
.scwms-picking-route-note{background:#fff!important}.scwms-picking-route-note h3{display:flex;align-items:center;gap:6px}
.scwms-camera-scanner{position:fixed;inset:0;z-index:300;background:rgba(17,20,27,.72);display:grid;place-items:center;padding:16px}.scwms-camera-scanner[hidden]{display:none!important}.scwms-camera-card{width:min(560px,100%);background:#fff;border-radius:20px;padding:14px;box-shadow:0 30px 90px rgba(0,0,0,.3)}.scwms-camera-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:2px 2px 10px}.scwms-camera-head b{font-size:13px}.scwms-camera-head button{width:36px;height:36px;border:0;border-radius:50%;background:#f2f3f5;font-size:23px;cursor:pointer}.scwms-camera-card video{display:block;width:100%;aspect-ratio:4/3;background:#111;border-radius:15px;object-fit:cover}.scwms-camera-card p{text-align:center!important;margin:10px 4px 0!important;font-size:9px!important}
@media(max-width:520px){
  .scwms-picking-instruction h2{font-size:24px!important}.scwms-picking-big-icon{width:58px;height:58px;font-size:28px}.scwms-picking-input-row{grid-template-columns:1fr}.scwms-picking-check{width:100%}.scwms-picking-task-top{grid-template-columns:1fr auto}.scwms-picking-progress-text{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;text-align:left}.scwms-picking-product{grid-template-columns:1fr}.scwms-picking-product strong{grid-column:1;grid-row:auto;justify-self:start}.scwms-pda-camera{min-height:48px}
}

/* =============================================================
   v0.8.4 · Más legibilidad y contraste en el contenido principal
   La barra lateral conserva su escala actual.
   ============================================================= */

/* Variables más contrastadas SOLO dentro del contenido. */
body.scwms-page .scwms-main{
  --sc-red:#cf2026;
  --sc-red-dark:#a5171c;
  --sc-red-soft:#ffeded;
  --sc-red-border:#edbcbc;
  --sc-text:#1d222b;
  --sc-muted:#596270;
  --sc-muted-2:#747e8b;
  --sc-bg:#f1f3f5;
  --sc-card:#ffffff;
  --sc-border:#d7dce2;
  --sc-soft:#f5f6f8;
  --sc-green:#159447;
  --sc-green-soft:#e8f7ee;
  --sc-amber:#d58d00;
  --sc-amber-soft:#fff3d9;
  --sc-blue:#276ee8;
  --sc-blue-soft:#eaf1ff;
  --sc-shadow:0 10px 28px rgba(20,26,36,.07);
  background:#f1f3f5!important;
  color:#1d222b!important;
}
body.scwms-page .scwms-content{color:#1d222b!important}

/* Tarjetas y paneles: bordes y separación más visibles. */
body.scwms-page .scwms-main .scwms-panel,
body.scwms-page .scwms-main .scwms-kpi{
  border-color:#d7dce2!important;
  box-shadow:0 10px 28px rgba(20,26,36,.065)!important;
}
body.scwms-page .scwms-main .scwms-panel{background:#fff!important}
body.scwms-page .scwms-main .scwms-kpi{background:#fff!important}
body.scwms-page .scwms-main .scwms-kpi-icon{
  background:#ffeded!important;
  color:#cf2026!important;
}

/* Encabezados principales. */
body.scwms-page .scwms-main .scwms-page-head h1{
  font-size:34px!important;
  line-height:1.08!important;
  color:#111620!important;
}
body.scwms-page .scwms-main .scwms-page-head p{
  font-size:14px!important;
  line-height:1.55!important;
  color:#596270!important;
  font-weight:500!important;
}
body.scwms-page .scwms-main .scwms-ml-status{
  font-size:12px!important;
  font-weight:800!important;
  padding:10px 16px!important;
}

/* Indicadores superiores. */
body.scwms-page .scwms-main .scwms-kpi{
  min-height:132px!important;
  padding:21px 22px!important;
  gap:16px!important;
}
body.scwms-page .scwms-main .scwms-kpi-icon{
  width:48px!important;
  height:48px!important;
  border-radius:14px!important;
}
body.scwms-page .scwms-main .scwms-kpi-icon .scwms-icon{
  width:23px!important;
  height:23px!important;
}
body.scwms-page .scwms-main .scwms-kpi small{
  font-size:12px!important;
  line-height:1.35!important;
  color:#303844!important;
  font-weight:700!important;
}
body.scwms-page .scwms-main .scwms-kpi strong{
  font-size:31px!important;
  line-height:1!important;
  margin:9px 0 9px!important;
  color:#10151d!important;
}
body.scwms-page .scwms-main .scwms-kpi em{
  font-size:11px!important;
  line-height:1.4!important;
  color:#626c79!important;
  font-weight:500!important;
}

/* Títulos y textos de paneles. */
body.scwms-page .scwms-main .scwms-panel-head h3{
  font-size:17px!important;
  line-height:1.25!important;
  color:#151a22!important;
  font-weight:800!important;
}
body.scwms-page .scwms-main .scwms-panel-head p{
  font-size:11px!important;
  line-height:1.5!important;
  color:#5d6673!important;
  font-weight:500!important;
}
body.scwms-page .scwms-main .scwms-panel p{
  color:#596270;
  line-height:1.55;
}
body.scwms-page .scwms-main .scwms-panel small{
  color:#606a77;
  line-height:1.45;
}

/* Botones, filtros y estados. */
body.scwms-page .scwms-main .scwms-btn{
  font-size:11.5px!important;
  min-height:38px;
  padding:10px 15px!important;
}
body.scwms-page .scwms-main .scwms-panel-head>.scwms-btn{font-size:10.5px!important}
body.scwms-page .scwms-main .scwms-filter-pill{
  font-size:11px!important;
  color:#495260!important;
  border-color:#d4d9df!important;
}
body.scwms-page .scwms-main .scwms-pill{
  font-size:10px!important;
  padding:6px 10px!important;
}
body.scwms-page .scwms-main .scwms-btn.outline{
  background:#fff!important;
  border-color:#e4a9ac!important;
}

/* Gráficos y estado de publicaciones. */
body.scwms-page .scwms-main .scwms-line-chart svg{
  background:repeating-linear-gradient(to bottom,transparent 0,transparent 43px,#dfe3e7 44px,#dfe3e7 45px)!important;
}
body.scwms-page .scwms-main .scwms-line-chart .line{stroke-width:3.6!important}
body.scwms-page .scwms-main .scwms-chart-x{
  font-size:9.5px!important;
  color:#6b7481!important;
  font-weight:500!important;
}
body.scwms-page .scwms-main .scwms-progress-row>div:first-child{
  font-size:11.5px!important;
  color:#303742!important;
}
body.scwms-page .scwms-main .scwms-progress-row b{font-size:11.5px!important;color:#171c24!important}
body.scwms-page .scwms-main .scwms-progress-row small{font-size:9.5px!important;color:#646d79!important}
body.scwms-page .scwms-main .scwms-progress{height:8px!important;background:#e3e6ea!important}
body.scwms-page .scwms-main .scwms-progress.muted i{background:#aeb6c0!important}

/* Listados, alertas y estados. */
body.scwms-page .scwms-main .scwms-status-line{
  font-size:11.5px!important;
  color:#353d49!important;
  border-color:#e0e4e8!important;
}
body.scwms-page .scwms-main .scwms-status-line b{font-size:11.5px!important}
body.scwms-page .scwms-main .scwms-summary-strip small{font-size:10px!important;color:#606a77!important}
body.scwms-page .scwms-main .scwms-summary-strip b{font-size:19px!important;color:#151a22!important}
body.scwms-page .scwms-main .scwms-flow-node b{font-size:10.5px!important;color:#313945!important}
body.scwms-page .scwms-main .scwms-flow-node strong{font-size:20px!important;color:#171c24!important}
body.scwms-page .scwms-main .scwms-alert-list b,
body.scwms-page .scwms-main .scwms-event-list b{font-size:11px!important;color:#272e38!important}
body.scwms-page .scwms-main .scwms-alert-list small,
body.scwms-page .scwms-main .scwms-event-list small{font-size:9.5px!important;color:#626c79!important}
body.scwms-page .scwms-main .scwms-alert-list>div,
body.scwms-page .scwms-main .scwms-event-list>div{border-color:#dfe3e7!important}

/* Tablas: antes estaban especialmente chicas. */
body.scwms-page .scwms-main .scwms-table th{
  font-size:10px!important;
  line-height:1.3!important;
  color:#525c69!important;
  font-weight:800!important;
  padding:11px 10px!important;
}
body.scwms-page .scwms-main .scwms-table td{
  font-size:11.5px!important;
  line-height:1.45!important;
  color:#242b35!important;
  padding:12px 10px!important;
}
body.scwms-page .scwms-main .scwms-table tr{border-color:#e0e4e8!important}

/* Búsquedas y formularios. */
body.scwms-page .scwms-main .scwms-local-search{
  border-color:#cfd5dc!important;
  box-shadow:0 5px 16px rgba(20,26,36,.035)!important;
}
body.scwms-page .scwms-main .scwms-local-search input{font-size:12px!important;color:#242b35!important}
body.scwms-page .scwms-main .scwms-local-search input::placeholder{color:#727c89!important}
body.scwms-page .scwms-main input,
body.scwms-page .scwms-main select,
body.scwms-page .scwms-main textarea{border-color:#cfd5dc!important;color:#252c36}

/* Historial de pedidos: misma escala legible que el resto del WMS. */
body.scwms-page .scwms-main .scwms-history-main-search input{font-size:12px!important}
body.scwms-page .scwms-main .scwms-history-filter-grid label{font-size:10.5px!important;color:#4c5663!important}
body.scwms-page .scwms-main .scwms-history-filter-grid input,
body.scwms-page .scwms-main .scwms-history-filter-grid select{font-size:11px!important;height:42px!important}
body.scwms-page .scwms-main .scwms-history-summary{font-size:11px!important;color:#596370!important}
body.scwms-page .scwms-main .scwms-history-summary b{font-size:15px!important}
body.scwms-page .scwms-main .scwms-history-open{font-size:10px!important}
body.scwms-page .scwms-main .scwms-history-late{font-size:9px!important}
body.scwms-page .scwms-main .scwms-history-detail-head>div>small{font-size:9px!important;color:#6e7885!important}
body.scwms-page .scwms-main .scwms-history-detail-head h2{font-size:24px!important}
body.scwms-page .scwms-main .scwms-history-detail-head p{font-size:11px!important;color:#5d6673!important}
body.scwms-page .scwms-main .scwms-history-facts small{font-size:9px!important;color:#697380!important}
body.scwms-page .scwms-main .scwms-history-facts b{font-size:11px!important}
body.scwms-page .scwms-main .scwms-history-stage h4{font-size:13px!important}
body.scwms-page .scwms-main .scwms-history-stage p{font-size:10.5px!important;color:#58626f!important}
body.scwms-page .scwms-main .scwms-history-stage em{font-size:9px!important}
body.scwms-page .scwms-main .scwms-history-subtitle{font-size:14px!important}
body.scwms-page .scwms-main .scwms-history-problem b{font-size:11px!important}
body.scwms-page .scwms-main .scwms-history-problem p{font-size:10.5px!important;color:#515b68!important}
body.scwms-page .scwms-main .scwms-history-problem small{font-size:9px!important;color:#707a87!important}
body.scwms-page .scwms-main .scwms-history-activity-row time{font-size:9px!important;color:#6d7784!important}
body.scwms-page .scwms-main .scwms-history-activity-row b{font-size:11px!important}
body.scwms-page .scwms-main .scwms-history-activity-row small{font-size:9.5px!important;color:#5f6976!important}

/* Despacho de escritorio. */
body.scwms-page .scwms-main .scwms-dispatch-channel-head h4{font-size:14px!important}
body.scwms-page .scwms-main .scwms-dispatch-channel-head p{font-size:10px!important;color:#596370!important}
body.scwms-page .scwms-main .scwms-dispatch-channel-counts small{font-size:9.5px!important;color:#616b78!important}
body.scwms-page .scwms-main .scwms-dispatch-channel-counts b{font-size:20px!important}
body.scwms-page .scwms-main .scwms-dispatch-package-data small{font-size:9.5px!important;color:#626c79!important}
body.scwms-page .scwms-main .scwms-dispatch-package-data b{font-size:11px!important}
body.scwms-page .scwms-main .scwms-dispatch-problem-action b{font-size:11px!important}
body.scwms-page .scwms-main .scwms-dispatch-problem-action small{font-size:9.5px!important;color:#5e6875!important}

/* Responsive: más grande, pero sin comerse la pantalla. */
@media(max-width:930px){
  body.scwms-page .scwms-main .scwms-page-head h1{font-size:30px!important}
  body.scwms-page .scwms-main .scwms-page-head p{font-size:13px!important}
  body.scwms-page .scwms-main .scwms-kpi{min-height:122px!important}
}
@media(max-width:680px){
  body.scwms-page .scwms-main .scwms-page-head h1{font-size:27px!important}
  body.scwms-page .scwms-main .scwms-page-head p{font-size:12px!important}
  body.scwms-page .scwms-main .scwms-kpi{min-height:112px!important;padding:18px!important}
  body.scwms-page .scwms-main .scwms-kpi small{font-size:11px!important}
  body.scwms-page .scwms-main .scwms-kpi strong{font-size:28px!important}
  body.scwms-page .scwms-main .scwms-kpi em{font-size:10px!important}
  body.scwms-page .scwms-main .scwms-panel-head h3{font-size:15px!important}
  body.scwms-page .scwms-main .scwms-panel-head p{font-size:10.5px!important}
  body.scwms-page .scwms-main .scwms-table th{font-size:9.5px!important}
  body.scwms-page .scwms-main .scwms-table td{font-size:11px!important}
}

/* =============================================================
   v0.8.5 · PDA de Preparación terminada y más legible
   ============================================================= */
.scwms-picking-availability{display:grid;grid-template-columns:12px 1fr;gap:11px;align-items:center;margin:18px 0 0;padding:13px 14px;border:1px solid #d9dee4;border-radius:14px;background:#f7f8f9}
.scwms-picking-live-dot{width:10px;height:10px;border-radius:50%;background:#1b9b50;box-shadow:0 0 0 4px #e4f6eb}
.scwms-picking-availability b,.scwms-picking-availability small{display:block}.scwms-picking-availability b{font-size:12px;color:#252b34}.scwms-picking-availability small{margin-top:3px;font-size:10px;line-height:1.4;color:#697382}
.scwms-picking-task-top{grid-template-columns:minmax(0,1fr) auto auto auto}
.scwms-picking-time{text-align:right}.scwms-picking-time small,.scwms-picking-time b{display:block}.scwms-picking-time b{font-variant-numeric:tabular-nums;font-size:12px!important;color:#303742}
.scwms-picking-pda .scwms-pda-secondary{font-size:12px}
.scwms-picking-pda .scwms-pda-simple-help b{font-size:12px}.scwms-picking-pda .scwms-pda-simple-help small{font-size:10px}
.scwms-picking-pda .scwms-picking-task-top small{font-size:9px}.scwms-picking-pda .scwms-picking-task-top b{font-size:15px}
.scwms-picking-pda .scwms-picking-instruction>small{font-size:10px}.scwms-picking-pda .scwms-picking-instruction p{font-size:13px!important;color:#596270!important}
.scwms-picking-pda .scwms-picking-product small{font-size:9px}.scwms-picking-pda .scwms-picking-product b{font-size:15px}.scwms-picking-pda .scwms-picking-product span{font-size:10px}.scwms-picking-pda .scwms-picking-product strong{font-size:11px}
.scwms-picking-pda .scwms-picking-scan label{font-size:12px}.scwms-picking-pda .scwms-picking-input-row input{height:58px;font-size:16px}.scwms-picking-pda .scwms-picking-check{min-height:58px;font-size:12px}.scwms-picking-pda .scwms-pda-camera{font-size:11px}
.scwms-picking-pda .scwms-picking-test-code{font-size:10px}.scwms-picking-pda .scwms-picking-feedback{min-height:44px;font-size:11px;font-weight:700}
.scwms-picking-pda .scwms-picking-quantity-done,.scwms-picking-pda .scwms-picking-finish{min-height:58px;font-size:13px!important}

.scwms-picking-problem-modal{position:fixed;inset:0;z-index:320;background:rgba(20,24,31,.68);display:grid;place-items:center;padding:12px;box-sizing:border-box;overflow:hidden}.scwms-picking-problem-modal[hidden]{display:none!important}
.scwms-picking-problem-card{box-sizing:border-box;width:min(600px,calc(100vw - 24px));max-width:100%;max-height:calc(100dvh - 24px);background:#fff;border-radius:22px;padding:18px;box-shadow:0 30px 90px rgba(0,0,0,.28);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.scwms-picking-problem-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}.scwms-picking-problem-head small{display:block;color:#cf2026;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.scwms-picking-problem-head h3{margin:4px 0 0;font-size:22px}.scwms-picking-problem-head button{width:38px;height:38px;border:0;border-radius:50%;background:#f0f2f4;color:#303741;font-size:24px;cursor:pointer}
.scwms-picking-problem-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.scwms-picking-problem-options button{min-height:58px;border:1px solid #d9dee4;border-radius:13px;background:#fff;text-align:left;padding:10px 12px;color:#303741;font:800 11px 'Inter',sans-serif;cursor:pointer}.scwms-picking-problem-options button.is-selected{border-color:#cf2026;background:#fff0f0;color:#b31c21;box-shadow:0 0 0 2px #ffe2e2}
.scwms-picking-problem-detail{display:block;min-width:0;margin-top:14px;font-size:11px;font-weight:800;color:#303741}.scwms-picking-problem-detail span{font-weight:600;color:#7a8390}.scwms-picking-problem-detail textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:86px;margin-top:7px;resize:vertical;border:1px solid #d9dee4!important;border-radius:13px!important;padding:11px 12px!important;background:#fff!important;color:#252b34;font:600 13px/1.45 'Inter',sans-serif;outline:none;overflow-wrap:anywhere}.scwms-picking-problem-detail textarea:focus{border-color:#e6a5a5!important;box-shadow:0 0 0 3px #fff1f1!important}
.scwms-picking-problem-selected{margin:10px 0;padding:9px 11px;border-radius:10px;background:#f5f6f8;color:#626c79;font-size:10px;font-weight:700}.scwms-picking-problem-card .scwms-btn:disabled{opacity:.45;cursor:not-allowed}

@media(max-width:520px){
  .scwms-pda-app[data-pda-kind="preparacion"] .scwms-pda-top{min-height:64px}.scwms-pda-app[data-pda-kind="preparacion"] .scwms-pda-user b{font-size:12px}.scwms-pda-app[data-pda-kind="preparacion"] .scwms-pda-user small{font-size:9px}.scwms-pda-app[data-pda-kind="preparacion"] .scwms-pda-title p{font-size:12px}
  .scwms-picking-task-top{grid-template-columns:1fr auto auto}.scwms-picking-progress-text{grid-column:1/-1}.scwms-picking-time{min-width:52px}
  .scwms-picking-problem-modal{padding:8px;place-items:center}.scwms-picking-problem-card{width:100%;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:18px;padding:16px 14px 18px;overflow-y:auto;overflow-x:hidden}.scwms-picking-problem-options{grid-template-columns:1fr}.scwms-picking-problem-options button{min-height:52px;font-size:12px}
  .scwms-picking-problem-head{position:sticky;top:-16px;z-index:2;margin:-16px -14px 12px;padding:16px 14px 10px;background:#fff;border-radius:18px 18px 0 0}
  .scwms-picking-problem-detail textarea{min-height:96px;resize:none}
}


/* ==========================================================
   v0.8.6 · PDA de Empaque: validación contra Mercado Libre
   ========================================================== */
.scwms-packing-pda{display:grid;gap:16px}
.scwms-packing-pda .scwms-pda-state{background:#fff1f1;color:#b31c21}
.scwms-packing-order-scan{display:grid;gap:9px;margin-top:18px;padding:14px;border:1px solid #d9dee4;border-radius:16px;background:#f7f8f9}
.scwms-packing-order-scan label,.scwms-packing-product-scan label{font-size:12px;font-weight:800;color:#303741}
.scwms-packing-order-scan .scwms-picking-input-row input,.scwms-packing-product-scan .scwms-picking-input-row input{height:58px;font-size:16px}
.scwms-packing-order-scan .scwms-picking-check,.scwms-packing-product-scan .scwms-picking-check{min-height:58px;font-size:12px}
.scwms-packing-pda .scwms-pda-simple-help{display:grid;gap:4px;padding:13px 14px;border:1px solid #e1e4e8;border-radius:14px;background:#fafbfc}
.scwms-packing-pda .scwms-pda-simple-help b{font-size:12px;color:#2b313a}.scwms-packing-pda .scwms-pda-simple-help span{font-size:10px;line-height:1.5;color:#626c79}
.scwms-packing-pda .scwms-picking-task-top{grid-template-columns:minmax(0,1fr) auto}.scwms-packing-pda .scwms-picking-task-top small{font-size:9px}.scwms-packing-pda .scwms-picking-task-top b{font-size:15px}
.scwms-packing-ml-card{margin-top:14px;padding:14px;border:1px solid #d9dee4;border-radius:16px;background:#f7f8f9}
.scwms-packing-ml-head{display:flex;align-items:center;gap:10px}.scwms-packing-ml-head>span{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#fff;font-size:19px;border:1px solid #e5e8ec}.scwms-packing-ml-head small,.scwms-packing-ml-head b{display:block}.scwms-packing-ml-head small{font-size:9px;color:#697382;text-transform:uppercase;letter-spacing:.06em;font-weight:800}.scwms-packing-ml-head b{margin-top:2px;font-size:12px;color:#252b34}
.scwms-packing-ml-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.scwms-packing-ml-facts>div{padding:10px;border:1px solid #dfe3e8;border-radius:12px;background:#fff}.scwms-packing-ml-facts small,.scwms-packing-ml-facts b{display:block}.scwms-packing-ml-facts small{font-size:8px;line-height:1.35;color:#697382}.scwms-packing-ml-facts b{margin-top:4px;font-size:11px;color:#252b34;overflow-wrap:anywhere}.scwms-packing-ml-card>p{margin-top:10px!important;font-size:10px!important;color:#626c79!important}
.scwms-packing-progress-text{display:flex;justify-content:flex-end;margin-top:13px}.scwms-packing-progress-text>div{text-align:right}.scwms-packing-progress-text b,.scwms-packing-progress-text small{display:block}.scwms-packing-progress-text b{font-size:13px}.scwms-packing-progress-text small{font-size:9px;color:#697382}
.scwms-packing-pda .scwms-picking-instruction>small{font-size:10px}.scwms-packing-pda .scwms-picking-instruction p{font-size:13px!important;color:#596270!important}
.scwms-packing-items{display:grid;gap:8px;margin:8px 0 12px}.scwms-packing-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid #dfe3e8;border-radius:13px;background:#fff}.scwms-packing-item>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#f3f4f6;font-size:17px}.scwms-packing-item b,.scwms-packing-item small{display:block}.scwms-packing-item b{font-size:12px;line-height:1.3;color:#272d36}.scwms-packing-item small{margin-top:3px;font-size:9px;color:#707987}.scwms-packing-item strong{min-width:54px;text-align:center;padding:7px 9px;border-radius:10px;background:#f4f5f7;color:#343b46;font-size:11px}.scwms-packing-item.is-done{border-color:#c7e5d2;background:#f4fbf6}.scwms-packing-item.is-done>span{background:#e2f4e8;color:#187840}.scwms-packing-item.is-done strong{background:#e2f4e8;color:#187840}
.scwms-packing-product-scan{display:grid;gap:9px;margin-top:4px}.scwms-packing-pda .scwms-pda-camera{font-size:11px}.scwms-packing-pda .scwms-picking-test-code{font-size:10px}.scwms-packing-pda .scwms-picking-feedback{min-height:44px;font-size:11px;font-weight:700}.scwms-packing-finish{min-height:58px;font-size:13px!important;margin-top:12px}
.scwms-packing-review{display:grid;grid-template-columns:auto minmax(0,1fr);gap:11px;align-items:start;margin-top:12px;padding:14px;border:1px solid #e8b4b4;border-radius:15px;background:#fff1f1}.scwms-packing-review>span{font-size:22px}.scwms-packing-review b{display:block;font-size:13px;color:#9f171c}.scwms-packing-review p{margin-top:4px!important;font-size:10px!important;color:#7b4749!important}.scwms-packing-review .scwms-btn{grid-column:1/-1;width:100%;min-height:48px}
.scwms-packing-problem-options{grid-template-columns:1fr 1fr}
.scwms-packing-pda button:disabled,.scwms-packing-pda input:disabled{opacity:.52;cursor:not-allowed}
@media(max-width:520px){
  .scwms-pda-app[data-pda-kind="empaque"] .scwms-pda-top{min-height:64px}.scwms-pda-app[data-pda-kind="empaque"] .scwms-pda-user b{font-size:12px}.scwms-pda-app[data-pda-kind="empaque"] .scwms-pda-user small{font-size:9px}.scwms-pda-app[data-pda-kind="empaque"] .scwms-pda-title p{font-size:12px}
  .scwms-packing-ml-facts{grid-template-columns:1fr}.scwms-packing-item{grid-template-columns:34px minmax(0,1fr) auto}.scwms-packing-item>span{width:34px;height:34px}.scwms-packing-problem-options{grid-template-columns:1fr}
}

/* v0.8.7 · PDA de Despacho + control estricto según Mercado Libre */
.scwms-pda-app[data-pda-kind="despacho"] .scwms-pda-title p{font-size:12px;color:#596370}
.scwms-pda-dispatch-card{display:grid;gap:16px}
.scwms-pda-dispatch-card .scwms-pda-state{background:#fff0f0;color:#b52227}
.scwms-dispatch-pda-first-scan label,.scwms-dispatch-next-package label{display:block;font-size:12px;font-weight:800;color:#303641;margin-bottom:8px}
.scwms-pda-dispatch-card .scwms-pda-scan-box{padding:14px;border-color:#d9dde2;background:#f7f8fa}
.scwms-pda-dispatch-card .scwms-pda-scan-box input{height:60px;font-size:17px;box-shadow:inset 0 0 0 1px #cfd4da!important}
.scwms-pda-dispatch-card .scwms-pda-scan-box small{font-size:10.5px;color:#5c6673;font-weight:650}
.scwms-dispatch-pda-help{margin-top:2px}
.scwms-dispatch-pda-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:2px}
.scwms-dispatch-pda-topline small,.scwms-dispatch-pda-topline b{display:block}.scwms-dispatch-pda-topline small{font-size:9px;color:#697482;margin-bottom:3px}.scwms-dispatch-pda-topline b{font-size:17px;color:#1d222b}
.scwms-dispatch-due-banner{display:grid;grid-template-columns:52px minmax(0,1fr);gap:13px;align-items:center;border:1px solid #dfe3e8;border-radius:16px;padding:14px;background:#f7f8fa}
.scwms-dispatch-due-banner>span{width:52px;height:52px;border-radius:15px;background:#fff;display:grid;place-items:center;font-size:25px;border:1px solid rgba(0,0,0,.05)}
.scwms-dispatch-due-banner small,.scwms-dispatch-due-banner h2,.scwms-dispatch-due-banner p{display:block;margin:0}.scwms-dispatch-due-banner small{font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.scwms-dispatch-due-banner h2{font-size:20px!important;margin:2px 0 4px!important}.scwms-dispatch-due-banner p{font-size:11px!important;line-height:1.45!important}
.scwms-dispatch-due-banner.is-today{background:#edf9f1;border-color:#bfdfc9}.scwms-dispatch-due-banner.is-today h2,.scwms-dispatch-due-banner.is-today small{color:#17743c}
.scwms-dispatch-due-banner.is-future{background:#fff1f1;border-color:#efc2c4}.scwms-dispatch-due-banner.is-future h2,.scwms-dispatch-due-banner.is-future small{color:#ae2026}
.scwms-dispatch-due-banner.is-late{background:#fff8e7;border-color:#ead49d}.scwms-dispatch-due-banner.is-late h2,.scwms-dispatch-due-banner.is-late small{color:#8b6214}
.scwms-dispatch-due-banner.is-missing{background:#f4f5f7;border-color:#d9dde2}.scwms-dispatch-due-banner.is-missing h2,.scwms-dispatch-due-banner.is-missing small{color:#596370}
.scwms-dispatch-due-banner.is-success{background:#edf9f1;border-color:#b9dec6}.scwms-dispatch-due-banner.is-success h2,.scwms-dispatch-due-banner.is-success small{color:#17743c}
.scwms-dispatch-ml-card{margin:0}.scwms-dispatch-pda-facts{grid-template-columns:1fr 1fr}.scwms-dispatch-pda-facts>div{min-width:0}.scwms-dispatch-pda-facts b{overflow-wrap:anywhere}
.scwms-dispatch-package-progress-card{border:1px solid #dfe3e8;border-radius:16px;padding:14px;background:#fff}
.scwms-dispatch-package-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.scwms-dispatch-package-progress-head small,.scwms-dispatch-package-progress-head b{display:block}.scwms-dispatch-package-progress-head small{font-size:9px;color:#687381;margin-bottom:2px}.scwms-dispatch-package-progress-head b{font-size:18px;color:#20252d}.scwms-dispatch-package-progress-head>span{display:inline-flex;padding:6px 9px;border-radius:999px;background:#f0f2f4;color:#616b78;font-size:9px;font-weight:800}.scwms-dispatch-package-progress-head>span.is-ok{background:#eaf8ef;color:#17743c}.scwms-dispatch-package-progress-head>span.is-pending{background:#fff4dc;color:#8a6112}
.scwms-dispatch-package-progress-card .scwms-picking-progress{margin:0 0 9px}.scwms-dispatch-package-progress-card>p{font-size:10.5px!important;color:#596370!important;line-height:1.45!important}
.scwms-pda-dispatch-checks{grid-template-columns:1fr 1fr!important;margin:0}.scwms-pda-dispatch-checks>div{min-height:58px;padding:10px}.scwms-pda-dispatch-checks b{font-size:10px!important;line-height:1.25}.scwms-pda-dispatch-checks i{width:32px;height:32px;font-size:10px}
.scwms-pda-dispatch-card .scwms-dispatch-confirm{min-height:60px;font-size:14px!important}.scwms-pda-dispatch-card .scwms-dispatch-confirm-help{font-size:11px!important;line-height:1.5!important;color:#596370!important;text-align:center;margin:-4px 0 0}
.scwms-dispatch-next-order{min-height:54px!important;font-size:12px!important}
.scwms-dispatch-problem-options{grid-template-columns:1fr 1fr}
.scwms-dispatch-ready-item em.is-review{color:#9a6810;background:#fff4dc}.scwms-dispatch-ready-item em.is-ready{color:#17743c;background:#eaf8ef}
body.scwms-page .scwms-main .scwms-dispatch-checks{grid-template-columns:repeat(4,minmax(0,1fr))}
body.scwms-page .scwms-main .scwms-dispatch-checks>div:nth-child(n+5){min-height:62px}
@media(max-width:1050px){body.scwms-page .scwms-main .scwms-dispatch-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.scwms-dispatch-pda-facts{grid-template-columns:1fr}.scwms-pda-dispatch-checks{grid-template-columns:1fr!important}.scwms-dispatch-problem-options{grid-template-columns:1fr}.scwms-dispatch-due-banner{grid-template-columns:46px minmax(0,1fr)}.scwms-dispatch-due-banner>span{width:46px;height:46px;font-size:22px}.scwms-dispatch-due-banner h2{font-size:18px!important}}
.scwms-dispatch-pda-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}.scwms-dispatch-pda-input-row button{min-width:112px;border:0;border-radius:12px;background:#cf2026;color:#fff;padding:0 14px;font:800 11px 'Inter',sans-serif;cursor:pointer}.scwms-dispatch-pda-input-row button:active{transform:scale(.99)}
@media(max-width:520px){.scwms-dispatch-pda-input-row{grid-template-columns:1fr}.scwms-dispatch-pda-input-row button{min-height:50px;width:100%;font-size:12px}}


/* v0.8.8 · Dispositivos / PDA */
.scwms-device-link-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 20px;padding:18px;background:#eef1f5;border:1px solid #cfd5dc;border-radius:16px}
.scwms-device-link-guide[hidden]{display:none!important}
.scwms-device-link-guide>div{display:flex;align-items:flex-start;gap:12px;background:#fff;border:1px solid #d7dde4;border-radius:14px;padding:16px}
.scwms-device-link-guide>div>span{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:10px;background:#fde9eb;color:#c91f32;font-weight:800}
.scwms-device-link-guide p{margin:0;color:#202832}.scwms-device-link-guide p b{display:block;font-size:15px;margin-bottom:5px}.scwms-device-link-guide p small{display:block;color:#596474;line-height:1.45}
.scwms-devices-table td{vertical-align:middle}.scwms-device-name-cell{display:flex;flex-direction:column;gap:4px}.scwms-device-name-cell b{font-size:15px;color:#161d27}.scwms-device-name-cell small,.scwms-cell-sub{display:block;color:#606b7a;font-size:12px;margin-top:3px}.scwms-device-area{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:9px;background:#eef1f5;border:1px solid #d6dce3;color:#283342;font-weight:700;font-size:12px}
.scwms-device-detail{scroll-margin-top:22px}.scwms-device-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;margin-top:18px}.scwms-device-editor-grid label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:700;color:#3d4755}.scwms-device-editor-grid input,.scwms-device-editor-grid select{width:100%;box-sizing:border-box;min-height:46px;border:1px solid #c9d0d9;border-radius:11px;background:#fff;padding:0 13px;color:#17202b;font:600 14px Inter,sans-serif;outline:none}.scwms-device-editor-grid input:focus,.scwms-device-editor-grid select:focus{border-color:#c91f32;box-shadow:0 0 0 3px rgba(201,31,50,.08)}
.scwms-device-readonly{display:flex;flex-direction:column;justify-content:center;gap:6px;min-height:70px;padding:12px 14px;border-radius:12px;background:#eef1f5;border:1px solid #d5dbe2}.scwms-device-readonly small{font-size:12px;color:#5b6675;font-weight:700}.scwms-device-readonly strong{font-size:15px;color:#151d28}
.scwms-device-editor-actions{display:flex;align-items:center;gap:10px;margin-top:18px;padding-top:18px;border-top:1px solid #d9dee5}.scwms-btn.outline.danger{color:#b0192a;border-color:#d6a8af;background:#fff}.scwms-btn.outline.danger:hover{background:#fff1f3;border-color:#c91f32}
.scwms-device-history-block{margin-top:24px;padding-top:20px;border-top:1px solid #d9dee5}.scwms-device-history-block h3{margin:0 0 4px;font-size:18px;color:#151d28}.scwms-device-history-block>p{margin:0 0 14px;color:#5b6675}.scwms-device-history{display:flex;flex-direction:column;border:1px solid #d8dee5;border-radius:13px;overflow:hidden}.scwms-device-history-row{display:grid;grid-template-columns:180px minmax(0,1fr);gap:16px;padding:13px 15px;background:#fff;border-bottom:1px solid #e0e4e9}.scwms-device-history-row:last-child{border-bottom:0}.scwms-device-history-row time{font-size:12px;color:#687383;font-weight:700}.scwms-device-history-row div{display:flex;flex-direction:column;gap:4px}.scwms-device-history-row b{font-size:13px;color:#1d2632}.scwms-device-history-row small{color:#647080}
@media(max-width:900px){.scwms-device-link-guide{grid-template-columns:1fr}.scwms-device-editor-grid{grid-template-columns:1fr}.scwms-device-history-row{grid-template-columns:1fr;gap:5px}.scwms-device-editor-actions{flex-direction:column;align-items:stretch}.scwms-device-editor-actions .scwms-btn{width:100%}}

/* v0.8.9 · Sincronización real con Mercado Libre */
.scwms-help-strip>b{flex:1;min-width:0}
.scwms-help-strip .scwms-sync-now{margin-left:auto;flex:0 0 auto;white-space:nowrap}
.scwms-real-chart .scwms-empty-state{height:100%;min-height:190px;display:flex;justify-content:center}
.scwms-real-chart svg polygon{pointer-events:none}
.scwms-real-chart svg circle{vector-effect:non-scaling-stroke}
@media(max-width:680px){
  .scwms-help-strip{flex-wrap:wrap}
  .scwms-help-strip .scwms-sync-now{width:100%;margin-left:0}
}


/* v0.8.11 · sincronización Mercado Libre 100% automática */
.scwms-auto-sync-state{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 12px;border:1px solid #cfe8d8;background:#f0faf4;color:#187840;border-radius:999px;font:700 10px 'Inter';white-space:nowrap;margin-left:auto}
.scwms-auto-sync-state:before{content:"";width:7px;height:7px;border-radius:50%;background:#20a45a;margin-right:7px}
.scwms-auto-sync-state.is-working{border-color:#f2d4a4;background:#fff8ea;color:#8a5b00}
.scwms-auto-sync-state.is-working:before{background:#e59c19;animation:scwmsAutoPulse 1s infinite alternate}
.scwms-auto-sync-state.is-error{border-color:#f3c4c4;background:#fff1f1;color:#b42323}
.scwms-auto-sync-state.is-error:before{background:#d71920}
.scwms-auto-sync-state.is-off{border-color:#dfe3e8;background:#f7f8fa;color:#687383}
.scwms-auto-sync-state.is-off:before{background:#9aa3af}
@keyframes scwmsAutoPulse{from{opacity:.35;transform:scale(.85)}to{opacity:1;transform:scale(1.15)}}
@media(max-width:760px){.scwms-auto-sync-state{margin-left:0;margin-top:8px}.scwms-local-toolbar .scwms-auto-sync-state{width:100%;margin-top:0}}

/* v0.8.11 · pantallas de Productos/Stock listas para redefinir */
.scwms-config-pending{min-height:260px;display:flex;align-items:center;justify-content:center}
.scwms-config-pending .scwms-empty-state{max-width:720px;text-align:center}


/* v0.8.12 · Estado de integración separado del Inicio Comercial */
.scwms-integration-hero{display:flex;align-items:center;gap:16px;padding:22px 24px;margin-bottom:20px;background:#fff;border:1px solid #d7dde5;border-radius:18px;box-shadow:0 8px 22px rgba(16,24,40,.045)}
.scwms-integration-hero-icon{display:grid;place-items:center;width:50px;height:50px;flex:0 0 50px;border-radius:14px;background:#eef9f2;color:#168447}
.scwms-integration-hero.is-pending .scwms-integration-hero-icon{background:#fff7e7;color:#9a6700}
.scwms-integration-hero h2{margin:2px 0 4px;font-size:23px;line-height:1.15;color:#101828}.scwms-integration-hero small{display:block;font-size:12px;font-weight:800;color:#667085;text-transform:uppercase;letter-spacing:.04em}.scwms-integration-hero p{margin:0;color:#475467;font-size:14px}.scwms-integration-hero>.scwms-pill{margin-left:auto}
.scwms-integration-kpis{margin-bottom:20px}.scwms-integration-admin-link{padding-top:18px}.scwms-integration-error{display:flex;gap:14px;align-items:flex-start;padding:14px;border-radius:12px;background:#fff4f4;border:1px solid #f2c9c9}.scwms-integration-error p{margin:4px 0;color:#7a271a}.scwms-integration-error small{color:#667085}
@media(max-width:760px){.scwms-integration-hero{align-items:flex-start;flex-wrap:wrap}.scwms-integration-hero>.scwms-pill{margin-left:66px}.scwms-integration-hero p{font-size:13px}}

/* v0.8.15 · Inicio Comercial más limpio */
.scwms-commercial-system-status{width:100%}
.scwms-system-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 26px}
.scwms-system-status-grid .scwms-status-line{min-width:0}
@media(max-width:1100px){.scwms-system-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.scwms-system-status-grid{grid-template-columns:1fr}}

/* v0.8.20: Inicio Comercial simplificado a dos indicadores principales. */
.scwms-commercial-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
@media(max-width:620px){.scwms-commercial-kpis{grid-template-columns:1fr!important;}}

/* v0.8.21 · Ventas: tres indicadores, sin Multi-SKU. */
body.scwms-page .scwms-kpi-grid.scwms-kpi-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(max-width:900px){body.scwms-page .scwms-kpi-grid.scwms-kpi-grid-three{grid-template-columns:1fr 1fr!important}}
@media(max-width:620px){body.scwms-page .scwms-kpi-grid.scwms-kpi-grid-three{grid-template-columns:1fr!important}}

/* v0.8.74 · Ventas: las 3 cards quedan alineadas en una sola fila en escritorio. */
body.scwms-page .scwms-kpi-grid.scwms-commercial-kpis.scwms-sales-kpis{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  max-width:none!important;
  width:100%!important;
}
@media(max-width:980px){
  body.scwms-page .scwms-kpi-grid.scwms-commercial-kpis.scwms-sales-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:620px){
  body.scwms-page .scwms-kpi-grid.scwms-commercial-kpis.scwms-sales-kpis{
    grid-template-columns:1fr!important;
  }
}

/* v0.8.31 · Controles grandes para Filas / Columnas / Niveles del diseñador */
.scwms-properties .scwms-number-stepper{display:grid;grid-template-columns:minmax(0,1fr) 42px;min-height:50px;margin-top:5px;border:1px solid var(--sc-border);border-radius:11px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.scwms-properties .scwms-number-stepper:focus-within{border-color:var(--sc-red-border);box-shadow:0 0 0 3px var(--sc-red-soft)}
.scwms-properties .scwms-number-stepper input{height:50px;margin:0;border:0!important;border-radius:0;padding:10px 12px;font-size:13px;font-weight:600;box-shadow:none!important;background:transparent;-moz-appearance:textfield}
.scwms-properties .scwms-number-stepper input::-webkit-outer-spin-button,.scwms-properties .scwms-number-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.scwms-number-stepper-buttons{display:grid;grid-template-rows:1fr 1fr;border-left:1px solid var(--sc-border)}
.scwms-number-stepper-buttons button{appearance:none;-webkit-appearance:none;border:0;background:#fff;color:#4b5563;display:grid;place-items:center;min-height:25px;padding:0;font-size:13px;line-height:1;cursor:pointer;transition:background .12s,color .12s}
.scwms-number-stepper-buttons button:first-child{border-bottom:1px solid var(--sc-border)}
.scwms-number-stepper-buttons button:hover{background:var(--sc-red-soft);color:var(--sc-red)}
.scwms-number-stepper-buttons button:active{background:#ffe4e4;transform:translateY(1px)}
@media(max-width:620px){.scwms-properties .scwms-number-stepper{grid-template-columns:minmax(0,1fr) 48px;min-height:54px}.scwms-properties .scwms-number-stepper input{height:54px;font-size:14px}.scwms-number-stepper-buttons button{font-size:14px}}

/* v0.8.37 · Canceladas */
.scwms-cancelled-panel .scwms-history-filter-grid{margin:14px 0 10px}
.scwms-cancelled-clear-wrap{display:flex;height:42px;align-items:stretch}
.scwms-cancelled-clear-wrap .scwms-btn{width:100%;height:42px}
.scwms-cancelled-summary{display:flex;justify-content:flex-end;margin:0 0 10px;color:#5b6572;font-size:10.5px;font-weight:700}
.scwms-cancelled-panel .scwms-pill.danger{font-size:9.5px;padding:7px 11px}
@media(max-width:820px){.scwms-cancelled-summary{justify-content:flex-start}}


/* v0.8.38 · Estanterías sin datos de muestra */
.scwms-racks-empty-real{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center}
.scwms-racks-empty-real .scwms-btn{margin-top:8px}
.scwms-rack-real-total{display:flex;align-items:baseline;gap:10px;padding:8px 0 14px;border-bottom:1px solid var(--sc-border);margin-bottom:2px}
.scwms-rack-real-total strong{font-size:34px;line-height:1}
.scwms-rack-real-total span{color:var(--sc-muted);font-size:12px}

/* v0.8.39 · Base Comercial */
.scwms-bc-integration{border-top:3px solid #8f1d21}.scwms-bc-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.scwms-bc-config{margin-top:20px;padding-top:18px;border-top:1px solid #d7dde5;display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}.scwms-bc-config label{display:grid;gap:7px}.scwms-bc-config label span{font-size:12px;font-weight:800;color:#344054}.scwms-bc-config input{width:100%;min-height:46px;padding:0 13px;border:1px solid #b9c2ce;border-radius:10px;background:#fff;color:#1f2937;font:inherit;box-sizing:border-box}.scwms-bc-config input:focus{outline:3px solid rgba(143,29,33,.12);border-color:#8f1d21}.scwms-bc-actions{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap}.scwms-bc-feedback{grid-column:1/-1;padding:11px 13px;border-radius:10px;background:#f2f4f7;color:#475467;font-size:13px;font-weight:700}.scwms-bc-feedback.is-ok{background:#e8f4ec;color:#176a37;border:1px solid #b9ddc8}.scwms-bc-feedback.is-error{background:#f8e7e8;color:#7f1d1d;border:1px solid #dfb6b8}.scwms-bc-help{grid-column:1/-1;margin:0;color:#667085;font-size:12px}.scwms-space-top.scwms-integration-error{margin-top:16px}@media(max-width:760px){.scwms-bc-status-grid,.scwms-bc-config{grid-template-columns:1fr}.scwms-bc-actions{grid-column:auto}.scwms-bc-feedback,.scwms-bc-help{grid-column:auto}.scwms-bc-actions .scwms-btn{width:100%}}


/* v0.8.40 · Productos desde Base Comercial */
.scwms-integration-error[hidden],#scwms-bc-error[hidden]{display:none!important}
.scwms-products-toolbar{align-items:center}
.scwms-products-toolbar-side{margin-left:auto;display:flex;align-items:center;gap:10px;white-space:nowrap;color:#475467;font-size:11px}
.scwms-products-source{display:inline-flex;align-items:center;min-height:32px;padding:0 11px;border-radius:999px;background:#e9f5ed;border:1px solid #c8e4d1;color:#176a37;font-weight:800}
.scwms-products-panel{padding-bottom:12px}
.scwms-products-table-wrap{overflow:auto;max-width:100%}
body.scwms-page .scwms-products-table{min-width:1180px;table-layout:fixed}
body.scwms-page .scwms-products-table th:nth-child(1){width:130px}
body.scwms-page .scwms-products-table th:nth-child(2){width:255px}
body.scwms-page .scwms-products-table th:nth-child(3){width:250px}
body.scwms-page .scwms-products-table th:nth-child(4){width:150px}
body.scwms-page .scwms-products-table th:nth-child(5){width:175px}
body.scwms-page .scwms-products-table th:nth-child(6){width:160px}
body.scwms-page .scwms-products-table th:nth-child(7){width:145px}
.scwms-products-table tbody td{vertical-align:top;padding-top:14px;padding-bottom:14px}
.scwms-products-table tbody tr.scwms-product-row>td{border-bottom:8px solid #f2f4f7}
.scwms-product-photo-cell{text-align:center}
.scwms-product-photo{width:110px;height:110px;margin:0 auto;display:grid;place-items:center;border:1px solid #e0e4ea;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 4px 12px rgba(16,24,40,.06)}
.scwms-product-photo img{width:100%;height:100%;object-fit:contain;display:block}
.scwms-product-photo>span{display:none;font-size:30px;opacity:.45}.scwms-product-photo.is-missing>span{display:block}
.scwms-product-tier{min-height:78px;padding:4px 0 10px;display:flex;flex-direction:column;justify-content:center;gap:8px;border-bottom:1px solid #edf0f3}
.scwms-product-tier:last-child{border-bottom:0;padding-bottom:4px}
.scwms-product-listing{display:grid;gap:5px;align-content:center}
.scwms-listing-kind{display:inline-flex;justify-self:start;padding:3px 7px;border-radius:5px;background:#f0f1f3;color:#414752;font-size:8.5px;font-weight:900;line-height:1;text-transform:uppercase;letter-spacing:.02em}
.scwms-listing-kind.is-catalog{background:#f1f1ef;color:#4a4a46}
.scwms-copy-line{display:flex;align-items:center;gap:7px;min-width:0}
.scwms-copy-line b{min-width:0;overflow-wrap:anywhere}
.scwms-copy-mini{flex:0 0 auto;width:23px;height:23px;padding:0;display:grid;place-items:center;border:0;background:transparent;color:#7b8491;border-radius:6px;cursor:pointer;font:800 13px/1 system-ui;transition:background .12s,color .12s}
.scwms-copy-mini:hover{background:#f0f2f5;color:#8f1d21}.scwms-copy-mini.is-copied{background:#e7f4eb;color:#176a37}
.scwms-product-identity{vertical-align:middle!important}.scwms-product-identity-inner{min-height:110px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px}
.scwms-product-category{display:inline-flex;padding:4px 8px;border-radius:999px;background:#f0f1f3;color:#525866;font-size:9px;font-weight:800;max-width:100%;white-space:normal}
.scwms-product-sku b{font-size:12px;color:#1f2937}.scwms-product-identity small{color:#667085;line-height:1.45;font-size:10.5px;max-width:230px}
.scwms-product-quota-tier{align-items:flex-start}.scwms-quota-badge{display:inline-flex;min-width:88px;justify-content:center;padding:9px 10px;border:1px solid #b9c2ce;border-radius:9px;background:#fff;color:#2d333b;font-size:10px;font-weight:900;box-shadow:0 2px 5px rgba(16,24,40,.04)}
.scwms-quota-toggle{appearance:none;border:0;background:transparent;padding:0;color:#667085;text-decoration:underline;font-size:9.5px;font-weight:700;cursor:pointer}.scwms-quota-toggle:hover{color:#8f1d21}
.scwms-quota-row{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.scwms-product-links-tier{align-items:flex-start;gap:5px}.scwms-product-links-tier a,.scwms-product-links-cell>a{color:#344054;text-decoration:none;font-size:10px;font-weight:700}.scwms-product-links-tier a:hover,.scwms-product-links-cell>a:hover{color:#8f1d21;text-decoration:underline}.scwms-product-no-link,.scwms-muted-text{color:#98a2b3}
.scwms-product-code-cell,.scwms-product-location-cell{vertical-align:middle!important}.scwms-product-code-cell .scwms-copy-line{min-height:110px;align-items:center}.scwms-product-code-cell b{font-size:10.5px}
.scwms-location-badge,.scwms-location-empty{display:inline-flex;align-items:center;min-height:30px;padding:0 9px;border-radius:8px;font-size:10px;font-weight:800}.scwms-location-badge{background:#eef6f0;color:#176a37;border:1px solid #d0e6d6}.scwms-location-empty{background:#fff5e8;color:#8a5b00;border:1px solid #efd5a5}
.scwms-product-row.is-quotas-hidden .is-quota-extra{display:none}
@media(max-width:760px){.scwms-products-toolbar{align-items:stretch}.scwms-products-toolbar-side{width:100%;margin-left:0;justify-content:space-between}.scwms-products-table-wrap{margin-left:-4px;margin-right:-4px}.scwms-product-photo{width:92px;height:92px}}

/* v0.8.41 · Productos rápidos, sin desplazamiento lateral + Stock desde BC */
.scwms-products-table-wrap{overflow:visible!important;max-width:100%;width:100%}
body.scwms-page .scwms-products-table,
body.scwms-page .scwms-stock-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
body.scwms-page .scwms-products-table col.c-photo{width:8%}
body.scwms-page .scwms-products-table col.c-mla{width:19%}
body.scwms-page .scwms-products-table col.c-id{width:20%}
body.scwms-page .scwms-products-table col.c-quota{width:11%}
body.scwms-page .scwms-products-table col.c-links{width:13%}
body.scwms-page .scwms-products-table col.c-code{width:15%}
body.scwms-page .scwms-products-table col.c-location{width:14%}
body.scwms-page .scwms-products-table th,
body.scwms-page .scwms-products-table td,
body.scwms-page .scwms-stock-table th,
body.scwms-page .scwms-stock-table td{min-width:0!important;max-width:none!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal}
.scwms-products-table tbody td{padding-left:10px;padding-right:10px}
.scwms-product-photo{width:min(88px,100%);height:auto;aspect-ratio:1/1}
.scwms-product-tier{min-height:64px;gap:6px;padding:5px 0 8px}
.scwms-product-identity-inner{min-height:88px;gap:6px}
.scwms-product-identity small{max-width:100%;font-size:9.5px}
.scwms-product-category{font-size:8px;padding:4px 7px}
.scwms-product-sku b{font-size:10.5px}
.scwms-product-listing .scwms-copy-line b{font-size:9.5px}
.scwms-product-code-cell .scwms-copy-line{min-height:88px;align-items:center;flex-wrap:wrap}
.scwms-product-code-cell b{font-size:9.5px}
.scwms-product-links-tier a,.scwms-product-links-cell>a{font-size:9px;line-height:1.35}
.scwms-quota-badge{min-width:0;width:100%;box-sizing:border-box;padding:8px 6px;font-size:8.5px}
.scwms-quota-toggle{font-size:8.5px}
.scwms-location-badge,.scwms-location-empty{min-height:28px;padding:0 7px;font-size:9px;white-space:normal;text-align:center}
.scwms-products-more-wrap{display:flex;justify-content:center;padding:16px 0 4px}
.scwms-products-more-wrap[hidden]{display:none!important}
.scwms-products-more-wrap .scwms-btn{min-width:190px}

/* Stock: misma separación visual que Base Comercial. */
body.scwms-page .scwms-stock-table col.c-photo{width:12%}
body.scwms-page .scwms-stock-table col.c-mla{width:30%}
body.scwms-page .scwms-stock-table col.c-id{width:36%}
body.scwms-page .scwms-stock-table col.c-stock{width:22%}
.scwms-stock-table tbody td{vertical-align:middle;padding-top:14px;padding-bottom:14px}
.scwms-stock-table tbody tr.scwms-product-row>td{border-bottom:8px solid #f2f4f7}
.scwms-stock-head>span{display:block;text-align:center;margin-bottom:7px}
.scwms-stock-head small{display:grid;grid-template-columns:1fr 1fr;gap:8px;color:#475467;font-size:8px;letter-spacing:.02em}
.scwms-stock-values{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:center}
.scwms-stock-value{display:grid;place-items:center;min-height:38px;border-radius:10px;background:#f1f2f4;color:#7b8491;font-size:11px;font-weight:800}
.scwms-stock-value.has-stock{background:#e8f3dc;color:#335b1b}
.scwms-stock-value b{font-size:11px}

/* Por debajo de 980 px pasa a tarjetas para no crear jamás scroll horizontal. */
@media(max-width:980px){
  .scwms-products-table thead,.scwms-stock-table thead{display:none}
  body.scwms-page .scwms-products-table,body.scwms-page .scwms-products-table tbody,
  body.scwms-page .scwms-stock-table,body.scwms-page .scwms-stock-table tbody{display:block;width:100%}
  body.scwms-page .scwms-products-table tr.scwms-product-row,
  body.scwms-page .scwms-stock-table tr.scwms-product-row{display:grid;grid-template-columns:110px minmax(0,1fr) minmax(0,1fr);gap:0;background:#fff;border:1px solid #d8dde5;border-radius:14px;overflow:hidden;margin:0 0 12px}
  body.scwms-page .scwms-products-table tr.scwms-product-row>td,
  body.scwms-page .scwms-stock-table tr.scwms-product-row>td{display:block;border:0!important;padding:12px;min-width:0}
  body.scwms-page .scwms-products-table tr.scwms-product-row>td:before,
  body.scwms-page .scwms-stock-table tr.scwms-product-row>td:before{content:attr(data-label);display:block;margin-bottom:7px;color:#667085;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
  body.scwms-page .scwms-products-table .scwms-product-photo-cell,
  body.scwms-page .scwms-stock-table .scwms-product-photo-cell{grid-row:1/span 2}
  body.scwms-page .scwms-products-table .scwms-product-photo-cell:before,
  body.scwms-page .scwms-stock-table .scwms-product-photo-cell:before{display:none}
  body.scwms-page .scwms-products-table .scwms-product-code-cell,
  body.scwms-page .scwms-products-table .scwms-product-location-cell{grid-column:auto}
  .scwms-product-photo{width:82px;margin:0 auto}
  .scwms-product-code-cell .scwms-copy-line,.scwms-product-identity-inner{min-height:0}
  .scwms-stock-values{max-width:240px}
}
@media(max-width:650px){
  .scwms-products-toolbar{align-items:stretch}
  .scwms-products-toolbar-side{width:100%;margin-left:0;justify-content:space-between}
  body.scwms-page .scwms-products-table tr.scwms-product-row,
  body.scwms-page .scwms-stock-table tr.scwms-product-row{grid-template-columns:92px minmax(0,1fr)}
  body.scwms-page .scwms-products-table .scwms-product-photo-cell,
  body.scwms-page .scwms-stock-table .scwms-product-photo-cell{grid-row:1/span 3}
  body.scwms-page .scwms-products-table tr.scwms-product-row>td:not(.scwms-product-photo-cell),
  body.scwms-page .scwms-stock-table tr.scwms-product-row>td:not(.scwms-product-photo-cell){grid-column:2}
  .scwms-product-photo{width:70px}
}


/* v0.8.42 · Productos replica el orden útil de BC y muestra todo sin paginar. */
body.scwms-page .scwms-products-table col.c-photo{width:7%}
body.scwms-page .scwms-products-table col.c-mla{width:18%}
body.scwms-page .scwms-products-table col.c-id{width:18%}
body.scwms-page .scwms-products-table col.c-stock{width:11%}
body.scwms-page .scwms-products-table col.c-quota{width:10%}
body.scwms-page .scwms-products-table col.c-code{width:13%}
body.scwms-page .scwms-products-table col.c-location{width:10%}
body.scwms-page .scwms-products-table col.c-links{width:13%}
.scwms-products-table .scwms-stock-values{grid-template-columns:1fr 1fr;gap:5px}
.scwms-products-table .scwms-stock-value{min-height:32px;border-radius:8px;font-size:9.5px}
.scwms-copy-mini{width:28px;height:28px;border:1px solid #d5dae2;background:#fff;color:#4b5563;box-shadow:0 1px 2px rgba(16,24,40,.05)}
.scwms-copy-mini svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.scwms-copy-mini:hover{background:#f4f5f7;border-color:#aeb7c4;color:#8f1d21}
.scwms-copy-mini.is-copied{background:#e7f4eb;border-color:#b9dcc5;color:#176a37}
.scwms-copy-line{gap:5px}
.scwms-product-listing .scwms-copy-line b,.scwms-product-sku b{font-size:10.5px;letter-spacing:.01em}
.scwms-product-listing{gap:6px}
.scwms-product-tier{min-height:72px;border-bottom:1px solid #e5e8ec}
.scwms-product-quota-tier{justify-content:center}
.scwms-quota-badge{width:auto;min-width:92px;padding:9px 12px;font-size:9px;white-space:nowrap}
.scwms-product-links-cell{vertical-align:top!important}
.scwms-product-links-tier{gap:6px}
.scwms-product-links-tier a,.scwms-product-links-cell>a{font-size:9.5px;font-weight:750}
/* En Productos, los niveles MLA / cuotas / links comparten la misma altura para alinearse como BC. */
.scwms-product-mla-cell .scwms-product-tier,
.scwms-product-quotas-cell .scwms-product-tier,
.scwms-product-links-cell .scwms-product-tier{min-height:72px;box-sizing:border-box}
/* No existe paginación manual en Productos ni Stock. */
.scwms-products-more-wrap{display:none!important}

/* =============================================================
   v0.8.46 · Identidad visual SmartClick WMS
   Referencia: mockup de marca aportado por SmartClick.
   Esta capa modifica solamente presentación: no altera flujos,
   permisos, rutas, datos, textos ni comportamiento JavaScript.
   ============================================================= */
:root{
  --sc-red:#E11D2E;
  --sc-red-dark:#B01423;
  --sc-red-soft:#FDECEE;
  --sc-red-border:#F6C9CF;
  --sc-black:#17161A;
  --sc-text:#1A1A1A;
  --sc-muted:#6E6B66;
  --sc-muted-2:#8A8680;
  --sc-bg:#F5F4F2;
  --sc-card:#FFFFFF;
  --sc-border:#E6E4E0;
  --sc-soft:#FAF9F7;
  --sc-green:#0E9F5B;
  --sc-green-soft:#E6F6ED;
  --sc-amber:#B36B00;
  --sc-amber-soft:#FFF4E0;
  --sc-blue:#3478F6;
  --sc-blue-soft:#EEF4FF;
  --sc-shadow:none;
  --sc-radius:12px;
}
html,body{background:var(--sc-bg)!important}
body.scwms-page{background:var(--sc-bg)!important}
.scwms-app{background:var(--sc-bg);color:var(--sc-text);font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}
.scwms-app button,.scwms-app input,.scwms-app select,.scwms-app textarea{font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}

/* Sidebar oscuro, angosto y sobrio como la referencia. */
.scwms-sidebar{flex:0 0 232px;min-width:232px;width:232px;background:#17161A;border-right:0;padding:22px 14px 14px;color:#fff;box-shadow:none}
.scwms-brand{display:flex;align-items:center;gap:10px;min-height:30px;padding:0 8px 22px;color:#fff;font-size:15px;font-weight:800;letter-spacing:-.2px;white-space:nowrap}
.scwms-brand:before{content:'S';width:30px;height:30px;flex:0 0 30px;border-radius:7px;background:var(--sc-red);color:#fff;display:grid;place-items:center;font-size:16px;font-weight:900;letter-spacing:0}
.scwms-brand span{color:#fff}
.scwms-nav{gap:18px;padding:0 0 10px;scrollbar-color:#454149 transparent}
.scwms-nav-group{display:grid;gap:3px}
.scwms-nav-section{padding:4px 10px 3px;margin:0;color:#6E6B66}
.scwms-nav-section span{font-size:10px!important;font-weight:700!important;letter-spacing:1.2px!important;text-transform:uppercase}
.scwms-nav-item{color:#B8B4AE;border-radius:8px;padding:9px 10px;font:500 14px/1.2 'Inter',sans-serif;gap:10px;box-shadow:none!important}
.scwms-nav-item .scwms-icon{width:18px;height:18px}
.scwms-nav-item:hover{background:#211F24;color:#fff}
.scwms-nav-item.is-active{background:#2A282E;color:#fff;box-shadow:none!important;font-weight:700}
.scwms-sidebar-bottom{padding-top:10px;border-top:1px solid #2A282E;gap:8px}
.scwms-user-card,.scwms-device-card{border:0;background:transparent;border-radius:8px;padding:9px 10px;box-shadow:none;color:#fff}
.scwms-user-card{grid-template-columns:30px 1fr auto;gap:10px}
.scwms-avatar{width:30px;height:30px;background:#2A282E;color:#B8B4AE;font-size:11px}
.scwms-user-card strong{font-size:13px;color:#fff;font-weight:600}.scwms-user-card small{font-size:11px;color:#8A8680}.scwms-chevron{color:#8A8680}
.scwms-device-card{color:#B8B4AE}.scwms-device-card small{font-size:9px;color:#8A8680}.scwms-device-card strong{font-size:11px;color:#D3D0CB}.scwms-device-dot{background:#0E9F5B;box-shadow:0 0 0 3px rgba(14,159,91,.14)}

/* Área principal cálida y limpia. */
.scwms-main{background:var(--sc-bg)}
.scwms-topbar{height:62px;background:rgba(245,244,242,.96);border-bottom:0;padding:0 32px;backdrop-filter:blur(10px)}
.scwms-ml-status{background:#fff;border:1px solid var(--sc-border);color:#57544F;border-radius:999px;padding:7px 14px;font-size:13px;font-weight:600}
.scwms-ml-status.is-connected{background:#fff;border-color:var(--sc-border);color:#1A1A1A}.scwms-ml-status.is-connected i{background:#0E9F5B}
.scwms-notification{width:38px;height:38px;border-color:var(--sc-border);background:#fff;color:#57544F}
.scwms-notification b{background:var(--sc-red)}
.scwms-content{max-width:none;padding:16px 32px 40px}
.scwms-page-head{align-items:flex-end;margin-bottom:20px}
body.scwms-page .scwms-main .scwms-page-head h1{font-size:28px!important;line-height:1.05;font-weight:800;letter-spacing:-.5px;color:#1A1A1A!important}
body.scwms-page .scwms-main .scwms-page-head p{margin-top:4px;font-size:14px!important;line-height:1.4;color:#6E6B66!important;font-weight:500;max-width:820px}

/* Botones y controles. */
.scwms-btn{border-color:var(--sc-red);background:var(--sc-red);border-radius:9px;padding:11px 14px;font:800 13px/1.2 'Inter',sans-serif;box-shadow:none}
.scwms-btn:hover{background:var(--sc-red-dark);border-color:var(--sc-red-dark);box-shadow:none;transform:none}
.scwms-btn.outline{background:#fff;color:#57544F!important;border-color:var(--sc-border)}
.scwms-btn.outline:hover{background:#FAF9F7;color:#1A1A1A!important;border-color:#D8D5D0}
.scwms-filter-pill{border-color:var(--sc-border);background:#fff;border-radius:999px;padding:8px 13px;font:700 12px 'Inter';color:#57544F}
.scwms-pill{border-radius:6px;padding:5px 9px;font-size:11px;font-weight:800;letter-spacing:.25px;background:#EFEDE9;color:#57544F;border-color:#E6E4E0}
.scwms-pill.success{background:#E6F6ED;color:#0B7A46;border-color:#BFE6D1}.scwms-pill.warning{background:#FFF4E0;color:#B36B00;border-color:#F1D4A1}.scwms-pill.danger{background:#FDECEE;color:#A4111F;border-color:#F6C9CF}
.scwms-search{height:42px;border-color:var(--sc-border);border-radius:9px}.scwms-search input{font-size:13px!important}

/* Tarjetas, KPI y paneles sin sombras pesadas. */
.scwms-kpi-grid{gap:14px;margin-bottom:14px}
.scwms-kpi{min-height:126px;border-color:var(--sc-border);border-radius:12px;padding:18px;box-shadow:none;gap:12px}
.scwms-kpi:hover{transform:none;box-shadow:none;border-color:#D8D5D0}
.scwms-kpi-icon{width:38px;height:38px;border-radius:9px;background:#FDECEE;color:var(--sc-red)}
body.scwms-page .scwms-main .scwms-kpi small{font-size:12px!important;line-height:1.2;color:#6E6B66!important;font-weight:700;text-transform:uppercase;letter-spacing:.55px}
body.scwms-page .scwms-main .scwms-kpi strong{font-size:38px!important;line-height:1;letter-spacing:-1px;margin:8px 0 4px;color:#1A1A1A}
body.scwms-page .scwms-main .scwms-kpi em{font-size:13px!important;color:#6E6B66!important;font-weight:500}
.scwms-panel,.scwms-profile-card,.scwms-integration-hero{border-color:var(--sc-border);border-radius:12px;box-shadow:none;background:#fff}
.scwms-panel{padding:18px}.scwms-panel.compact{padding:16px}
body.scwms-page .scwms-main .scwms-panel-head h3{font-size:15px!important;font-weight:800;color:#1A1A1A!important}
body.scwms-page .scwms-main .scwms-panel-head p{font-size:12px!important;color:#6E6B66!important}
.scwms-panel-head>.scwms-btn{font-size:12px;padding:8px 11px}

/* Tablas y listados. */
.scwms-table-wrap,.scwms-products-table-wrap{border-color:var(--sc-border);border-radius:12px;background:#fff}
.scwms-table th{background:#FAF9F7;border-bottom-color:var(--sc-border);color:#6E6B66;padding:12px 14px;font-size:11px!important;font-weight:800;letter-spacing:.65px}
.scwms-table td{padding:13px 14px;border-bottom-color:#F2F0EC;font-size:13px!important;color:#1A1A1A}
.scwms-table tbody tr:not(:has(td.empty)):hover{background:#FAF9F7}.scwms-table tbody tr.is-selected{background:#FEF6F7}
.scwms-stock-table th,.scwms-products-table th,.scwms-history-table th{background:#FAF9F7!important;color:#6E6B66!important;border-color:var(--sc-border)!important}
.scwms-stock-table td,.scwms-products-table td,.scwms-history-table td{border-color:#F2F0EC!important}

/* Formularios, propiedades y diseñador de depósito. */
.scwms-design-library,.scwms-properties,.scwms-design-canvas{border-color:var(--sc-border);border-radius:12px;box-shadow:none}
.scwms-design-library button{background:#FAF9F7;border-radius:8px;color:#57544F}.scwms-design-library button:hover{background:#FDECEE;border-color:#F6C9CF;color:#A4111F}
.scwms-design-grid{background-color:#FAF9F7;background-image:linear-gradient(#EDEBE7 1px,transparent 1px),linear-gradient(90deg,#EDEBE7 1px,transparent 1px);background-size:22px 22px}
.scwms-design-rack{border-color:#D8D5D0;border-radius:8px;box-shadow:none}.scwms-design-rack:hover{box-shadow:none}.scwms-design-rack.is-selected{border-color:var(--sc-red);box-shadow:0 0 0 3px #FDECEE}
.scwms-properties input,.scwms-properties select,.scwms-form input,.scwms-form select,.scwms-form textarea,.scwms-bc-config input{border-color:var(--sc-border);border-radius:8px;background:#FAF9F7;color:#1A1A1A;font-family:'Inter',sans-serif}
.scwms-properties input:focus,.scwms-properties select:focus,.scwms-form input:focus,.scwms-form select:focus,.scwms-form textarea:focus,.scwms-bc-config input:focus{border-color:#E11D2E;box-shadow:0 0 0 3px #FDECEE;outline:0}
.scwms-number-stepper-buttons button{background:#FAF9F7!important;color:#57544F!important;border-color:var(--sc-border)!important}

/* Bloques auxiliares y modales. */
.scwms-action-hero{border-radius:12px;background:#17161A;box-shadow:none}
.scwms-modal{background:rgba(23,22,26,.58)}.scwms-modal-card{border:1px solid var(--sc-border);border-radius:14px;box-shadow:0 24px 60px rgba(23,22,26,.20)}
.scwms-toast{background:#17161A;border-radius:9px;font-size:12px}
.scwms-profile-avatar{border-radius:10px}.scwms-profile-facts>div{background:#FAF9F7;border-color:#EFEDE9;border-radius:9px}
.scwms-progress{background:#F0EEEA;height:8px}.scwms-progress i{background:#0E9F5B}

/* Login con la misma identidad, sin modificar autenticación. */
.scwms-login-shell{background:#F5F4F2;font-family:'Inter',system-ui,sans-serif}
.scwms-login-card{border-color:var(--sc-border);border-radius:14px;box-shadow:0 24px 60px rgba(23,22,26,.10)}
.scwms-login-card .scwms-brand{color:#17161A;padding:0 0 18px}.scwms-login-card .scwms-brand span{color:#17161A}
.scwms-login-card input{border-color:var(--sc-border)!important;background:#FAF9F7!important;border-radius:8px!important;font-family:'Inter',sans-serif!important}
.scwms-login-card .button-primary{background:#E11D2E!important;border-color:#E11D2E!important;border-radius:9px!important;font-family:'Inter',sans-serif!important;font-weight:800!important}

/* PDA: conserva pasos y controles, pero adopta la referencia visual. */
.scwms-pda-app{background:#E9E7E3;font-family:'Inter',system-ui,sans-serif;color:#1A1A1A}
.scwms-pda-top{background:#17161A;border-bottom:0;color:#fff;min-height:68px}.scwms-pda-brand{color:#fff}.scwms-pda-brand span{color:#fff}.scwms-pda-user b{color:#fff}.scwms-pda-user small{color:#B8B4AE}
.scwms-pda-main{width:min(700px,100%);gap:16px}
.scwms-pda-title>span{border-radius:12px;background:#FDECEE}.scwms-pda-title h1{font-weight:900;letter-spacing:-.5px}.scwms-pda-title p{color:#6E6B66}
.scwms-pda-card{border-color:var(--sc-border);border-radius:14px;box-shadow:none}
.scwms-pda-state{border-radius:7px;background:#E6F6ED;color:#0B7A46;font-size:11px}
.scwms-pda-steps>div,.scwms-pda-simple-help>div,.scwms-packing-order-scan,.scwms-packing-ml-card,.scwms-dispatch-due-banner,.scwms-dispatch-package-progress-card{background:#FAF9F7;border-color:var(--sc-border);border-radius:12px}
.scwms-pda-scan-box{background:#FAF9F7;border-color:var(--sc-border);border-radius:12px}.scwms-pda-scan-box input{border-radius:9px!important;box-shadow:inset 0 0 0 1px var(--sc-border)!important;font-family:'Inter',sans-serif}
.scwms-pda-secondary,.scwms-pda-camera,.scwms-pda-back-desktop{border-color:var(--sc-border);border-radius:10px;background:#fff;color:#57544F;font-family:'Inter',sans-serif}
.scwms-picking-problem-card{border-radius:16px}.scwms-picking-problem-options button{border-color:var(--sc-border);border-radius:10px;font-family:'Inter',sans-serif}.scwms-picking-problem-options button.is-selected{border-color:#E11D2E;background:#FDECEE;color:#A4111F;box-shadow:none}
.scwms-packing-item{border-color:var(--sc-border);border-radius:10px}.scwms-packing-item>span{border-radius:8px;background:#EFEDE9}

/* Integra paneles nuevos con la misma paleta. */
.scwms-integration-hero{border-radius:12px}.scwms-integration-hero-icon{border-radius:10px;background:#E6F6ED;color:#0B7A46}
.scwms-integration-error{background:#FDECEE;border-color:#F6C9CF;border-radius:10px}
.scwms-bc-integration{border-top-color:#E11D2E}.scwms-bc-feedback{border-radius:8px;background:#FAF9F7}

/* Responsive: conserva el comportamiento existente y ajusta la nueva piel. */
@media(max-width:930px){
  .scwms-sidebar{position:fixed;flex-basis:276px;min-width:276px;width:276px}
  .scwms-topbar{padding:0 18px}.scwms-content{padding:18px 18px 34px}
  body.scwms-page .scwms-main .scwms-page-head h1{font-size:28px!important}
}
@media(max-width:680px){
  .scwms-content{padding:14px 14px 30px}.scwms-topbar{height:58px;padding:0 14px}
  body.scwms-page .scwms-main .scwms-page-head h1{font-size:26px!important}
  body.scwms-page .scwms-main .scwms-page-head p{font-size:12px!important}
  body.scwms-page .scwms-main .scwms-kpi strong{font-size:34px!important}
  .scwms-kpi{padding:16px}.scwms-panel{padding:15px}
  .scwms-ml-status{font-size:11px;padding:7px 10px}
}
@media(max-width:520px){
  .scwms-pda-main{padding:14px}.scwms-pda-card{border-radius:12px}.scwms-pda-top{min-height:64px}
}



/* =============================================================
   v0.8.45 — corrección visual: sidebar oscuro también en layout fijo
   El bloque de compatibilidad v0.7.1 reescribía el fondo a blanco.
   Esta capa final conserva el sidebar fijo pero respeta la identidad
   oscura de la referencia visual.
   ============================================================= */
@media(min-width:931px){
  body.scwms-page .scwms-sidebar{
    width:232px!important;
    min-width:232px!important;
    padding:22px 14px 14px!important;
    border-right:0!important;
    color:#fff!important;
  }
  body.scwms-page .scwms-sidebar .scwms-brand,
  body.scwms-page .scwms-sidebar .scwms-brand span,
  body.scwms-page .scwms-sidebar .scwms-user-card strong,
  body.scwms-page .scwms-sidebar .scwms-nav-item.is-active,
  body.scwms-page .scwms-sidebar .scwms-nav-item:hover{
    color:#fff!important;
  }
  body.scwms-page .scwms-sidebar .scwms-nav{
    padding:0 0 10px!important;
    scrollbar-color:#454149 transparent!important;
  }
  body.scwms-page .scwms-sidebar .scwms-nav-section{
    color:#6E6B66!important;
  }
  body.scwms-page .scwms-sidebar .scwms-nav-section::after{
    background:#2A282E!important;
  }
  body.scwms-page .scwms-sidebar .scwms-nav-item{
    color:#B8B4AE!important;
    min-height:42px!important;
    padding:10px 12px!important;
    border-radius:8px!important;
    background:transparent!important;
  }
  body.scwms-page .scwms-sidebar .scwms-nav-item:hover{
    background:#211F24!important;
  }
  body.scwms-page .scwms-sidebar .scwms-nav-item.is-active{
    background:#2A282E!important;
    box-shadow:none!important;
  }
  body.scwms-page .scwms-sidebar .scwms-sidebar-bottom{
    margin-top:10px!important;
    padding-top:10px!important;
    border-top:1px solid #2A282E!important;
  }
  body.scwms-page .scwms-sidebar .scwms-user-card,
  body.scwms-page .scwms-sidebar .scwms-device-card{
    background:transparent!important;
    color:#B8B4AE!important;
    border:0!important;
    box-shadow:none!important;
  }
  body.scwms-page .scwms-sidebar .scwms-user-card small,
  body.scwms-page .scwms-sidebar .scwms-device-card small,
  body.scwms-page .scwms-sidebar .scwms-chevron{
    color:#8A8680!important;
  }
  body.scwms-page .scwms-sidebar .scwms-device-card strong{
    color:#D3D0CB!important;
  }
  body.scwms-page .scwms-sidebar .scwms-avatar{
    background:#2A282E!important;
    color:#B8B4AE!important;
  }
  body.scwms-page .scwms-main{
    margin-left:232px!important;
    width:calc(100vw - 232px)!important;
    max-width:calc(100vw - 232px)!important;
  }
}


/* =============================================================
   v0.8.46 — ajuste fino de layout y tipografía
   Corrige el desborde horizontal del escritorio, agranda textos que
   habían quedado muy chicos y modera los que habían quedado demasiado
   grandes, manteniendo intacta la lógica del WMS.
   ============================================================= */
html,body,
body.scwms-page,
body.scwms-page .scwms-app{
  max-width:100%;
  overflow-x:hidden!important;
}
body.scwms-page .scwms-main,
body.scwms-page .scwms-content{
  min-width:0!important;
  max-width:100%!important;
  overflow-x:hidden!important;
}
body.scwms-page .scwms-content > *{
  max-width:100%!important;
}
@media(min-width:931px){
  body.scwms-page .scwms-sidebar{
    width:268px!important;
    min-width:268px!important;
    padding:20px 16px 16px!important;
  }
  body.scwms-page .scwms-sidebar .scwms-brand{
    padding:0 8px 20px!important;
    font-size:14px!important;
    line-height:1.1!important;
    overflow:hidden!important;
  }
  body.scwms-page .scwms-main{
    margin-left:268px!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
  }
}
body.scwms-page .scwms-content{
  padding:18px 26px 34px!important;
}
body.scwms-page .scwms-main .scwms-page-head h1{
  font-size:23px!important;
  line-height:1.08!important;
}
body.scwms-page .scwms-main .scwms-page-head p{
  font-size:15px!important;
  line-height:1.45!important;
}
body.scwms-page .scwms-sidebar .scwms-nav-item{
  font-size:15px!important;
  line-height:1.25!important;
}
body.scwms-page .scwms-sidebar .scwms-user-card strong{
  font-size:14px!important;
}
body.scwms-page .scwms-sidebar .scwms-user-card small,
body.scwms-page .scwms-sidebar .scwms-device-card small{
  font-size:11px!important;
}
body.scwms-page .scwms-main .scwms-kpi{
  min-height:118px!important;
}
body.scwms-page .scwms-main .scwms-kpi small{
  font-size:13px!important;
}
body.scwms-page .scwms-main .scwms-kpi strong{
  font-size:30px!important;
  line-height:1.05!important;
}
body.scwms-page .scwms-main .scwms-kpi em{
  font-size:15px!important;
}
body.scwms-page .scwms-main .scwms-panel-head h3,
body.scwms-page .scwms-main .scwms-profile-card h2{
  font-size:18px!important;
  line-height:1.2!important;
}
body.scwms-page .scwms-main .scwms-panel-head p,
body.scwms-page .scwms-main .scwms-profile-identity p,
body.scwms-page .scwms-main .scwms-empty-state,
body.scwms-page .scwms-main .scwms-empty-state span{
  font-size:14px!important;
  line-height:1.45!important;
}
body.scwms-page .scwms-main .scwms-status-line,
body.scwms-page .scwms-main .scwms-status-line b,
body.scwms-page .scwms-main .scwms-status-line span{
  font-size:14px!important;
  line-height:1.35!important;
}
body.scwms-page .scwms-main .scwms-summary-strip small{
  font-size:11px!important;
}
body.scwms-page .scwms-main .scwms-summary-strip b{
  font-size:18px!important;
}
body.scwms-page .scwms-main .scwms-table th{
  font-size:12px!important;
  padding:12px 14px!important;
}
body.scwms-page .scwms-main .scwms-table td{
  font-size:14px!important;
  padding:13px 14px!important;
}
body.scwms-page .scwms-main .scwms-profile-facts small{
  font-size:11px!important;
}
body.scwms-page .scwms-main .scwms-profile-facts strong{
  font-size:14px!important;
}
body.scwms-page .scwms-main .scwms-pill{
  font-size:12px!important;
}
@media(max-width:930px){
  body.scwms-page .scwms-content{
    padding:18px 18px 30px!important;
  }
  body.scwms-page .scwms-main .scwms-page-head h1{
    font-size:26px!important;
  }
}
@media(max-width:680px){
  body.scwms-page .scwms-content{
    padding:14px 14px 28px!important;
  }
  body.scwms-page .scwms-main .scwms-page-head h1{
    font-size:23px!important;
  }
  body.scwms-page .scwms-main .scwms-page-head p,
  body.scwms-page .scwms-main .scwms-panel-head p,
  body.scwms-page .scwms-main .scwms-table td,
  body.scwms-page .scwms-main .scwms-status-line,
  body.scwms-page .scwms-main .scwms-status-line b,
  body.scwms-page .scwms-main .scwms-status-line span{
    font-size:13px!important;
  }
  body.scwms-page .scwms-main .scwms-kpi strong{
    font-size:27px!important;
  }
  body.scwms-page .scwms-main .scwms-table th{
    font-size:11px!important;
  }
}


/* =============================================================
   v0.8.47 — Canceladas: histórico claro y sin ventas fantasma
   ============================================================= */
.scwms-cancelled-info{display:flex;align-items:flex-start;gap:12px;margin:14px 0 16px;padding:12px 14px;border:1px solid #f0d4d8;border-radius:10px;background:#fff7f8;color:#5f2b31}
.scwms-cancelled-info b{flex:0 0 auto;font-size:13px;line-height:1.4;color:#8f1724}
.scwms-cancelled-info span{font-size:13px;line-height:1.45;color:#5f5354}
.scwms-cancelled-info strong{color:#a4111f;font-weight:900}
.scwms-cancelled-table td:first-child b{display:block}
.scwms-cancelled-pack{display:block;margin-top:5px;font-size:12px!important;line-height:1.3;color:#6e6b66;font-weight:600}
.scwms-cancelled-state{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.scwms-cancelled-state .scwms-pill{white-space:nowrap}
.scwms-cancelled-state .scwms-pill.danger:last-child{font-weight:900;letter-spacing:.2px}
@media(max-width:820px){.scwms-cancelled-info{display:block}.scwms-cancelled-info b{display:block;margin-bottom:4px}.scwms-cancelled-info span{font-size:12.5px}}

/* =============================================================
   v0.8.48 — Inicio común por perfil, basado en la referencia visual
   ============================================================= */
body.scwms-page .scwms-home-v2{width:100%;min-width:0;color:#111827}
body.scwms-page .scwms-home-v2 *{box-sizing:border-box}
.scwms-home-heading{margin:0 0 15px}
.scwms-home-heading h1{margin:0 0 6px;font-size:29px!important;line-height:1.02;font-weight:900;letter-spacing:-.8px;color:#101318}
.scwms-home-heading p{margin:0;font-size:14px!important;line-height:1.4;color:#687386;font-weight:500}

.scwms-home-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:14px}
.scwms-home-kpi{min-width:0;min-height:106px;padding:16px 17px;border:1px solid #e3e7ed;border-radius:14px;background:#fff;display:flex;align-items:flex-start;gap:13px;box-shadow:0 7px 24px rgba(32,42,57,.035)}
.scwms-home-kpi-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;flex:0 0 auto}
.scwms-home-kpi-icon .scwms-icon{width:19px;height:19px}
.scwms-home-kpi>div{min-width:0}
.scwms-home-kpi small{display:block;margin:1px 0 7px;font-size:13px!important;line-height:1.2;font-weight:700;color:#273143;text-transform:none!important;letter-spacing:0!important}
.scwms-home-kpi strong{display:block;margin:0 0 6px!important;font-size:31px!important;line-height:1!important;font-weight:900;color:#0b1018;letter-spacing:-.7px!important}
.scwms-home-kpi em{display:block;font-size:12px!important;line-height:1.25;font-style:normal;color:#718096;white-space:normal}
.scwms-home-kpi.is-pending .scwms-home-kpi-icon{background:#fdecee;color:#d6112b}
.scwms-home-kpi.is-preparing .scwms-home-kpi-icon{background:#f8e8bb;color:#9d6900}
.scwms-home-kpi.is-ready .scwms-home-kpi-icon{background:#e8f7ee;color:#0a8a4b}
.scwms-home-kpi.is-review .scwms-home-kpi-icon{background:#fff0f1;color:#d6112b}
.scwms-home-kpi.is-review strong{color:#cf1130!important}

.scwms-home-main-grid{display:grid;grid-template-columns:1.06fr 1.06fr 1fr;gap:14px;margin-bottom:14px;align-items:stretch}
.scwms-home-panel{min-width:0;border:1px solid #e2e6ec;border-radius:14px;background:#fff;box-shadow:0 7px 24px rgba(32,42,57,.03);padding:16px}
.scwms-home-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:13px}
.scwms-home-panel>header h2{margin:0 0 3px;font-size:16px!important;line-height:1.2;font-weight:900;color:#151922;letter-spacing:-.2px}
.scwms-home-panel>header p{margin:0;font-size:12px!important;line-height:1.3;color:#7a8493;font-weight:500}

.scwms-home-stage-list{display:grid;gap:11px}
.scwms-home-stage-row>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}
.scwms-home-stage-row span{font-size:12.5px;line-height:1.2;font-weight:700;color:#202938}
.scwms-home-stage-row b{font-size:12.5px;line-height:1.2;font-weight:900;color:#10151d}
.scwms-home-stage-bar{height:8px;border-radius:99px;background:#edf0f4;overflow:hidden}
.scwms-home-stage-bar i{display:block;height:100%;width:0;border-radius:inherit;transition:width .25s ease;background:#2d70ef}
.scwms-home-stage-row.is-preparing .scwms-home-stage-bar i{background:#b97c00}
.scwms-home-stage-row.is-picked .scwms-home-stage-bar i{background:#47ae88}
.scwms-home-stage-row.is-packing .scwms-home-stage-bar i{background:#c38200}
.scwms-home-stage-row.is-ready .scwms-home-stage-bar i{background:#168653}
.scwms-home-stage-row.is-done .scwms-home-stage-bar i{background:#8994a3}

.scwms-home-due-list{display:grid;gap:10px}
.scwms-home-channel{min-height:63px;padding:11px 12px;border:1px solid #e4e8ee;border-radius:12px;background:#fff;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px}
.scwms-home-channel-badge{min-width:49px;padding:7px 8px;border-radius:8px;text-align:center;font-size:11px;line-height:1;font-weight:900;letter-spacing:.25px}
.scwms-home-channel-badge.flex{background:#edf4ff;color:#2862c8}
.scwms-home-channel-badge.colecta{background:#f3eafb;color:#723bb0}
.scwms-home-channel-copy{min-width:0}
.scwms-home-channel-copy b{display:block;font-size:15px;line-height:1.15;color:#121722;font-weight:900}
.scwms-home-channel-copy small{display:block;margin-top:3px;font-size:11.5px;line-height:1.2;color:#7b8491}
.scwms-home-channel-state{font-size:11.5px;line-height:1.1;font-weight:900;color:#4c5867;white-space:nowrap}
.scwms-home-channel-state.is-success{color:#0a8447}.scwms-home-channel-state.is-warning{color:#a06d00}.scwms-home-channel-state.is-muted{color:#7d8795}
.scwms-home-late{padding:11px 12px;border:1px solid #f0b8bd;border-radius:12px;background:#fff3f4;color:#b01325}
.scwms-home-late b{display:block;font-size:13px;line-height:1.2;font-weight:900}.scwms-home-late small{display:block;margin-top:4px;font-size:11.5px;color:#a54855}

.scwms-home-workers{display:grid;gap:9px}
.scwms-home-worker{min-height:53px;padding:9px 10px;border:1px solid #e7eaf0;border-radius:12px;background:#fff;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px}
.scwms-home-worker-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f3f5f7;color:#596579;font-size:11px;font-weight:900}
.scwms-home-worker>div{min-width:0}.scwms-home-worker b{display:block;font-size:12.5px;line-height:1.18;color:#10151c;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scwms-home-worker small{display:block;margin-top:3px;font-size:11px;line-height:1.2;color:#727d8e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scwms-home-worker em{padding:6px 8px;border-radius:7px;font-size:10.5px;line-height:1;font-style:normal;font-weight:900;white-space:nowrap;background:#eef2f7;color:#536074}
.scwms-home-worker em.role-picker{background:#edf4ff;color:#285cb5}.scwms-home-worker em.role-packer{background:#f6ecfb;color:#763db3}.scwms-home-worker em.role-despacho{background:#f1f2f4;color:#4b5563}.scwms-home-worker em.role-auditoria{background:#e8f7ee;color:#0b7a46}
.scwms-home-worker-empty{min-height:76px;border:1px dashed #dfe4ea;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:14px;color:#7a8493;font-size:12px}
.scwms-home-worker-empty b{color:#3a4452;margin-bottom:3px}.scwms-home-worker-empty span{font-size:11.5px}

.scwms-home-recent-panel{padding:16px}
.scwms-home-orders-link{flex:0 0 auto;border:1px solid #efc1c6;border-radius:9px;background:#fff;color:#c4152a;padding:9px 13px;font:900 12px/1.1 'Inter',sans-serif;cursor:pointer}
.scwms-home-orders-link:hover{background:#fff5f6;border-color:#e7aeb5}
.scwms-home-table-wrap{width:100%;overflow-x:auto;border:1px solid #e3e7ed;border-radius:12px;background:#fff}
.scwms-home-table{width:100%;min-width:810px;border-collapse:collapse;table-layout:fixed}
.scwms-home-table th{padding:11px 13px;background:#fafbfc;border-bottom:1px solid #e4e8ee;text-align:left;font-size:10.5px!important;line-height:1.2;font-weight:900;letter-spacing:.35px;color:#8190a3}
.scwms-home-table td{padding:12px 13px;border-bottom:1px solid #edf0f4;font-size:12.5px!important;line-height:1.25;color:#1d2633;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scwms-home-table tbody tr:last-child td{border-bottom:0}.scwms-home-table td:first-child b{font-weight:900;color:#111827}.scwms-home-table td.empty{text-align:center;color:#7d8795;padding:24px}
.scwms-home-table th:nth-child(1){width:15%}.scwms-home-table th:nth-child(2){width:31%}.scwms-home-table th:nth-child(3){width:8%}.scwms-home-table th:nth-child(4){width:20%}.scwms-home-table th:nth-child(5){width:13%}.scwms-home-table th:nth-child(6){width:13%}
.scwms-home-stage-pill{display:inline-block;max-width:100%;padding:6px 9px;border-radius:7px;font-size:10.5px;line-height:1;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid transparent}
.scwms-home-stage-pill.is-pending{background:#edf4ff;color:#255eb8;border-color:#d5e4ff}.scwms-home-stage-pill.is-preparing,.scwms-home-stage-pill.is-packing{background:#fff1d3;color:#8b6200;border-color:#efd394}.scwms-home-stage-pill.is-picked,.scwms-home-stage-pill.is-ready{background:#e8f7ee;color:#0b7c49;border-color:#ccebd8}.scwms-home-stage-pill.is-done{background:#eff1f4;color:#5e6978;border-color:#e0e4e9}.scwms-home-stage-pill.is-review{background:#fff0f1;color:#c3162b;border-color:#f2c7cc}
.scwms-home-due-cell{font-weight:900;color:#0a8145!important}.scwms-home-due-cell:has(*){font-weight:700}

@media(max-width:1280px){
  .scwms-home-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .scwms-home-main-grid{grid-template-columns:1fr 1fr}
  .scwms-home-workers-panel{grid-column:1/-1}
  .scwms-home-workers{grid-template-columns:1fr 1fr}
}
@media(max-width:820px){
  .scwms-home-main-grid{grid-template-columns:1fr}
  .scwms-home-workers-panel{grid-column:auto}
  .scwms-home-workers{grid-template-columns:1fr}
  .scwms-home-heading h1{font-size:27px!important}
}
@media(max-width:560px){
  .scwms-home-kpis{grid-template-columns:1fr;gap:10px}
  .scwms-home-kpi{min-height:94px;padding:14px}
  .scwms-home-panel,.scwms-home-recent-panel{padding:14px}
  .scwms-home-panel>header{display:block}.scwms-home-orders-link{margin-top:10px;width:100%}
  .scwms-home-channel{grid-template-columns:auto minmax(0,1fr)}.scwms-home-channel-state{grid-column:2;justify-self:start;margin-top:-3px}
}


/* v0.8.80 · Diseñador: editor de estanterías más claro */
@media(min-width:1251px){
  body.scwms-page .scwms-designer-apb{grid-template-columns:210px minmax(520px,1fr) 300px!important;}
}
body.scwms-page .scwms-property-editor{display:grid;gap:11px;}
body.scwms-page .scwms-property-card{border:1px solid var(--sc-border);border-radius:12px;background:#fff;padding:12px;}
body.scwms-page .scwms-property-card-head{margin-bottom:10px;}
body.scwms-page .scwms-property-card-head b{display:block;font-size:10px;color:#15171b;margin-bottom:2px;}
body.scwms-page .scwms-property-card-head small{display:block;font-size:7px;line-height:1.4;color:var(--sc-muted);}
body.scwms-page .scwms-property-card label{font-size:8px;margin-bottom:9px;}
body.scwms-page .scwms-property-card label:last-child{margin-bottom:0;}
body.scwms-page .scwms-rack-measures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:10px;}
body.scwms-page .scwms-rack-measures label{margin:0;min-width:0;}
body.scwms-page .scwms-rack-measures label>span{display:block;margin-bottom:4px;}
body.scwms-page .scwms-rack-measures .scwms-number-stepper{grid-template-columns:minmax(0,1fr) 28px;min-height:44px;margin-top:0;}
body.scwms-page .scwms-rack-measures .scwms-number-stepper input{height:44px;padding:8px;font-size:12px;text-align:center;}
body.scwms-page .scwms-rack-measures .scwms-number-stepper-buttons button{min-height:22px;font-size:10px;}
body.scwms-page .scwms-property-actions-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
body.scwms-page .scwms-property-actions-row .scwms-tool-action{min-height:46px;padding:8px 5px;}
body.scwms-page .scwms-property-actions-row .scwms-tool-action.danger{background:#fff7f7;border-color:#efc7c7;color:var(--sc-red);}
body.scwms-page .scwms-apply-property{margin-top:0!important;min-height:46px;}
body.scwms-page .scwms-design-library button[data-add-type="rack"] b{font-size:9px;}
body.scwms-page .scwms-design-library button[data-add-type="rack"] small{line-height:1.35;}
@media(max-width:620px){
  body.scwms-page .scwms-rack-measures{grid-template-columns:1fr 1fr;}
  body.scwms-page .scwms-rack-measures label:last-child{grid-column:1/-1;}
}




/* v0.9.94 · Canceladas: referencia de cierre de Colecta por pedido */
.scwms-cancelled-cutoff{margin-top:7px;display:flex;flex-direction:column;gap:2px;line-height:1.25}
.scwms-cancelled-cutoff small{font-size:11px;color:#64748b}
.scwms-cancelled-cutoff small.is-after{color:#b91c1c;font-weight:700}
.scwms-cancelled-cutoff small.is-before{color:#15803d;font-weight:700}
.scwms-cancelled-cutoff.is-missing small{color:#94a3b8;font-style:italic}


/* v0.9.95 · colores consistentes por estado operativo */
body.scwms-page .scwms-main .scwms-pill.status-new,
body.scwms-page .scwms-main .scwms-pill.status-imported,
body.scwms-page .scwms-main .scwms-pill.status-waiting-payment,
body.scwms-page .scwms-main .scwms-home-stage-pill.status-new,
body.scwms-page .scwms-main .scwms-home-stage-pill.status-imported,
body.scwms-page .scwms-main .scwms-home-stage-pill.status-waiting-payment{background:#EDF4FF!important;border-color:#D5E4FF!important;color:#255EB8!important}
body.scwms-page .scwms-main .scwms-pill.status-picking,
body.scwms-page .scwms-main .scwms-home-stage-pill.status-picking{background:#FFF4E0!important;border-color:#F1D4A1!important;color:#B36B00!important}
body.scwms-page .scwms-main .scwms-pill.status-picked,
body.scwms-page .scwms-main .scwms-home-stage-pill.status-picked{background:#F2F7D8!important;border-color:#DDE6A8!important;color:#6F7F11!important}
body.scwms-page .scwms-main .scwms-pill.status-packing,
body.scwms-page .scwms-main .scwms-home-stage-pill.status-packing{background:#FFE9D9!important;border-color:#F6C79B!important;color:#C95B12!important}
body.scwms-page .scwms-main .scwms-pill.status-packed,
body.scwms-page .scwms-main .scwms-pill.status-dispatch-ready,
body.scwms-page .scwms-main .scwms-home-stage-pill.status-packed,
body.scwms-page .scwms-main .scwms-home-stage-pill.status-dispatch-ready{background:#E6F6ED!important;border-color:#BFE6D1!important;color:#0B7A46!important}
body.scwms-page .scwms-main .scwms-pill.status-dispatched,
body.scwms-page .scwms-main .scwms-home-stage-pill.status-dispatched{background:#EEF1F5!important;border-color:#D8DEE6!important;color:#556170!important}
body.scwms-page .scwms-main .scwms-pill.status-ml-shipped,
body.scwms-page .scwms-main .scwms-home-stage-pill.status-ml-shipped{background:#ECE8FF!important;border-color:#D2C8FF!important;color:#5A35D6!important}
body.scwms-page .scwms-main .scwms-pill.status-review,
body.scwms-page .scwms-main .scwms-pill.status-dispatch-problem,
body.scwms-page .scwms-main .scwms-pill.status-packing-problem,
body.scwms-page .scwms-main .scwms-home-stage-pill.status-review,
body.scwms-page .scwms-main .scwms-home-stage-pill.status-dispatch-problem,
body.scwms-page .scwms-main .scwms-home-stage-pill.status-packing-problem,
body.scwms-page .scwms-main .scwms-pill.status-cancelled,
body.scwms-page .scwms-main .scwms-home-stage-pill.status-cancelled{background:#FDECEE!important;border-color:#F6C9CF!important;color:#A4111F!important}
body.scwms-page .scwms-main .scwms-home-stage-pill.is-ml-shipped{background:#ECE8FF!important;border-color:#D2C8FF!important;color:#5A35D6!important}
body.scwms-page .scwms-kanban-card.status-new{border-left:4px solid #255EB8}
body.scwms-page .scwms-kanban-card.status-picking{border-left:4px solid #B36B00}
body.scwms-page .scwms-kanban-card.status-picked{border-left:4px solid #6F7F11}
body.scwms-page .scwms-kanban-card.status-packing{border-left:4px solid #C95B12}
body.scwms-page .scwms-kanban-card.status-packed,
body.scwms-page .scwms-kanban-card.status-dispatch-ready{border-left:4px solid #0B7A46}
body.scwms-page .scwms-kanban-card.status-dispatched{border-left:4px solid #556170}
body.scwms-page .scwms-kanban-card.status-ml-shipped{border-left:4px solid #5A35D6;background:#FAF9FF}
body.scwms-page .scwms-kanban-card.status-review,
body.scwms-page .scwms-kanban-card.status-dispatch-problem,
body.scwms-page .scwms-kanban-card.status-packing-problem,
body.scwms-page .scwms-kanban-card.status-cancelled{border-left:4px solid #A4111F}
body.scwms-page .scwms-ml-transit-badge.status-ml-shipped{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:999px;background:#ECE8FF;color:#5A35D6;border:1px solid #D2C8FF;font-style:normal;font-weight:900;letter-spacing:.25px}


/* v0.9.96 · canceladas visual polish */
body.scwms-page .scwms-cancelled-panel .scwms-table-wrap{background:#fff!important;border:1px solid #e6e8ee!important;border-radius:16px!important;overflow:hidden!important;box-shadow:0 10px 28px rgba(16,24,40,.04)!important}
body.scwms-page .scwms-cancelled-table{border-collapse:separate!important;border-spacing:0!important}
body.scwms-page .scwms-cancelled-table thead th{background:#f8fafc!important;color:#475467!important;font-size:10px!important;letter-spacing:.04em!important;padding-top:14px!important;padding-bottom:14px!important}
body.scwms-page .scwms-cancelled-table tbody tr{background:#fff!important}
body.scwms-page .scwms-cancelled-table tbody td{padding-top:18px!important;padding-bottom:18px!important;border-bottom:1px solid #eef2f6!important;line-height:1.45!important}
body.scwms-page .scwms-cancelled-table tbody tr:last-child td{border-bottom:none!important}
body.scwms-page .scwms-cancelled-table td:nth-child(2),
body.scwms-page .scwms-cancelled-table td:nth-child(3){font-weight:700!important;color:#344054!important}
body.scwms-page .scwms-cancelled-table td:nth-child(6),
body.scwms-page .scwms-cancelled-table td:nth-child(7),
body.scwms-page .scwms-cancelled-table td:nth-child(8){vertical-align:middle!important}
body.scwms-page .scwms-cancelled-table .scwms-order-copy-value{display:flex!important;align-items:flex-start!important;gap:8px!important;min-width:0!important}
body.scwms-page .scwms-cancelled-table .scwms-order-copy-value strong{font-size:14px!important;line-height:1.2!important;color:#101828!important;word-break:break-word!important}
body.scwms-page .scwms-cancelled-table .scwms-copy-mini{flex:0 0 auto!important;margin-top:1px!important}
body.scwms-page .scwms-cancelled-pack{margin-top:8px!important;font-size:12px!important;line-height:1.45!important;color:#667085!important;font-weight:600!important}
body.scwms-page .scwms-cancelled-copy-row{display:flex!important;align-items:center!important;gap:8px!important;margin-top:8px!important;flex-wrap:wrap!important}
body.scwms-page .scwms-cancelled-table td:nth-child(4)>b{display:inline-flex!important;align-items:center!important;padding:4px 10px!important;border-radius:999px!important;background:#f2f4f7!important;color:#344054!important;font-size:12px!important;font-weight:800!important}
body.scwms-page .scwms-cancelled-detail{gap:8px!important}
body.scwms-page .scwms-cancelled-detail>b{font-size:13px!important;line-height:1.25!important;color:#101828!important}
body.scwms-page .scwms-cancelled-detail>span{font-size:12.5px!important;line-height:1.5!important;color:#475467!important;max-width:34ch!important}
body.scwms-page .scwms-cancelled-reputation{margin-top:2px!important}
body.scwms-page .scwms-cancelled-cutoff{margin-top:10px!important;padding:10px 12px!important;background:#f8fafc!important;border:1px solid #e6edf5!important;border-radius:12px!important;gap:4px!important}
body.scwms-page .scwms-cancelled-cutoff small{font-size:11.5px!important;line-height:1.35!important}
body.scwms-page .scwms-cancelled-cutoff small b{font-size:12px!important}
body.scwms-page .scwms-cancelled-cutoff small.is-after{color:#b42318!important}
body.scwms-page .scwms-cancelled-cutoff small.is-before{color:#027a48!important}
body.scwms-page .scwms-cancelled-table td:nth-child(6) .scwms-pill,
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-pill{min-height:36px!important;padding:8px 12px!important;border-radius:10px!important;font-size:11px!important;font-weight:900!important;letter-spacing:.02em!important}
body.scwms-page .scwms-cancelled-table .scwms-no-debe-salir{min-width:136px!important}
body.scwms-page .scwms-cancelled-table .scwms-cancel-safety-none{display:inline-flex!important;align-items:center!important;min-height:40px!important;padding:9px 12px!important;border:1px solid #e4e7ec!important;border-radius:12px!important;background:#f8fafc!important;color:#98a2b3!important;font-size:12px!important;line-height:1.35!important;white-space:normal!important}
body.scwms-page .scwms-cancelled-table .scwms-cancel-safety-state{min-width:0!important;max-width:280px!important;padding:12px 13px!important;border-radius:12px!important;gap:6px!important;box-shadow:0 2px 8px rgba(16,24,40,.03)!important}
body.scwms-page .scwms-cancelled-table .scwms-cancel-safety-state b{font-size:12.5px!important;line-height:1.35!important}
body.scwms-page .scwms-cancelled-table .scwms-cancel-safety-state small{font-size:11.5px!important;line-height:1.45!important}
body.scwms-page .scwms-cancelled-table .scwms-cancel-safety-state.is-transit-risk{padding:12px 13px!important;border:1px solid #fecaca!important;border-radius:12px!important;background:#fff1f2!important}
body.scwms-page .scwms-cancelled-table .scwms-cancel-safety-state.is-transit-risk b{color:#b42318!important}
body.scwms-page .scwms-cancelled-table .scwms-cancel-label-confirm{margin-top:6px!important;min-height:36px!important;border-radius:10px!important;font-size:11px!important}
@media(max-width:1200px){
  body.scwms-page .scwms-cancelled-table td:nth-child(4)>b{font-size:11.5px!important}
  body.scwms-page .scwms-cancelled-detail>span{max-width:none!important}
}

/* v0.9.97 · recupero de canceladas */
body.scwms-page .scwms-cancel-summary-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
body.scwms-page .scwms-cancel-summary-actions .scwms-btn{min-height:32px;padding:6px 10px;font-size:10.5px}
body.scwms-page .scwms-flex-cutoff{background:#f7f5ff!important;border-color:#e4defd!important}
body.scwms-page .scwms-cancel-recovery-help{display:block;margin:14px 0 16px;padding:14px 16px;border:1px solid #e7eaf0;border-radius:12px;background:#f8fafc}
body.scwms-page .scwms-cancel-recovery-help b{display:block;margin-bottom:5px;font-size:12.5px;line-height:1.4;color:#101828;white-space:normal}
body.scwms-page .scwms-cancel-recovery-help span{display:block;font-size:12px;line-height:1.5;color:#667085}
body.scwms-page .scwms-cancel-recovery-summary{display:flex;justify-content:flex-end;margin:0 0 10px;font-size:11px;font-weight:800;color:#475467}
body.scwms-page .scwms-cancel-recovery-table{min-width:1180px}
body.scwms-page .scwms-cancel-recovery-table th{font-size:9.5px;letter-spacing:.04em}
body.scwms-page .scwms-cancel-recovery-table td{vertical-align:middle;padding-top:14px;padding-bottom:14px}
body.scwms-page .scwms-cancel-recovery-table td>small{display:block;margin-top:4px;color:#667085;font-size:10.5px;line-height:1.35}
body.scwms-page .scwms-recovery-person{display:flex;flex-direction:column;gap:3px;min-width:110px}
body.scwms-page .scwms-recovery-person b{font-size:11.5px;color:#101828;line-height:1.25}
body.scwms-page .scwms-recovery-person small{font-size:10px;color:#667085;line-height:1.25}
body.scwms-page .scwms-recovery-empty{color:#98a2b3}
body.scwms-page .scwms-recovery-status{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:9px;font-size:10.5px;font-weight:900;white-space:nowrap;border:1px solid}
body.scwms-page .scwms-recovery-status.is-done{background:#eaf7ef;border-color:#bfe6d1;color:#067647}
body.scwms-page .scwms-recovery-status.is-pending{background:#fff4e5;border-color:#f3d0a0;color:#a15c00}
body.scwms-page .scwms-recovery-status.is-risk{background:#fdecee;border-color:#f6c9cf;color:#a4111f}
body.scwms-page .scwms-recovery-confirmed{display:block;margin-top:5px;font-size:10px;color:#667085}
body.scwms-page .scwms-cancel-detail-modal-card{width:min(760px,calc(100vw - 30px));max-width:760px}
body.scwms-page .scwms-cancel-detail-result{display:flex;flex-direction:column;gap:5px;margin:14px 0;padding:13px 14px;border-radius:12px;border:1px solid}
body.scwms-page .scwms-cancel-detail-result b{font-size:12px;letter-spacing:.02em}
body.scwms-page .scwms-cancel-detail-result span{font-size:11.5px;line-height:1.45}
body.scwms-page .scwms-cancel-detail-result.is-done{background:#f3fbf5;border-color:#b7e0c2;color:#067647}
body.scwms-page .scwms-cancel-detail-result.is-pending{background:#fff8eb;border-color:#efd6a9;color:#8a5a00}
body.scwms-page .scwms-cancel-detail-result.is-risk{background:#fff1f2;border-color:#fecaca;color:#b42318}
body.scwms-page .scwms-cancel-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
body.scwms-page .scwms-cancel-detail-grid>div{padding:11px 12px;border:1px solid #e4e7ec;border-radius:10px;background:#fafbfc}
body.scwms-page .scwms-cancel-detail-grid small,body.scwms-page .scwms-cancel-detail-stage small{display:block;color:#667085;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
body.scwms-page .scwms-cancel-detail-grid b{display:block;margin-top:4px;font-size:12px;color:#101828;line-height:1.4}
body.scwms-page .scwms-cancel-detail-stages{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0 16px}
body.scwms-page .scwms-cancel-detail-stage{padding:12px;border:1px solid #e4e7ec;border-radius:11px;background:#fff}
body.scwms-page .scwms-cancel-detail-stage b{display:block;margin-top:5px;font-size:12px;color:#101828}
body.scwms-page .scwms-cancel-detail-stage span{display:block;margin-top:4px;font-size:10.5px;line-height:1.35;color:#667085}
@media(max-width:820px){body.scwms-page .scwms-cancel-recovery-help{display:block}body.scwms-page .scwms-cancel-recovery-help b{display:block;margin-bottom:5px;white-space:normal}body.scwms-page .scwms-cancel-detail-grid,body.scwms-page .scwms-cancel-detail-stages{grid-template-columns:1fr}}
body.scwms-page .scwms-recovery-status.is-none{background:#f2f4f7;border-color:#e4e7ec;color:#667085}
body.scwms-page .scwms-cancel-detail-result.is-none{background:#f8fafc;border-color:#e4e7ec;color:#667085}


/* v0.9.98 · alerta persistente de canceladas fuera del depósito */
body.scwms-page .scwms-global-cancel-risk{width:100%;margin:0 0 16px;padding:13px 15px;border:1px solid #f2b8bd;border-radius:14px;background:#fff4f5;color:#8f1724;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:12px;text-align:left;cursor:pointer;box-shadow:0 8px 24px rgba(164,17,31,.06)}
body.scwms-page .scwms-global-cancel-risk[hidden]{display:none!important}
body.scwms-page .scwms-global-cancel-risk-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#a4111f;color:#fff;font-size:18px;font-weight:900}
body.scwms-page .scwms-global-cancel-risk-copy{display:grid;gap:3px;min-width:0}
body.scwms-page .scwms-global-cancel-risk-copy b{font-size:13px;line-height:1.25;color:#a4111f}
body.scwms-page .scwms-global-cancel-risk-copy small{font-size:11.5px;line-height:1.4;color:#70464b}
body.scwms-page .scwms-global-cancel-risk-action{padding:7px 10px;border:1px solid #efc3c7;border-radius:9px;background:#fff;color:#a4111f;font-size:10.5px;font-weight:900;white-space:nowrap}
@media(max-width:720px){body.scwms-page .scwms-global-cancel-risk{grid-template-columns:34px 1fr}.scwms-global-cancel-risk-action{grid-column:2;justify-self:start}}


/* v0.9.99 · venta/pack compactos en canceladas */
body.scwms-page .scwms-cancelled-table td:first-child{padding-right:14px!important}
body.scwms-page .scwms-cancelled-table .scwms-order-copy-value{display:grid!important;grid-template-columns:minmax(0,1fr) 24px!important;align-items:start!important;column-gap:6px!important;width:100%!important}
body.scwms-page .scwms-cancelled-table .scwms-order-copy-value strong{font-size:12.5px!important;line-height:1.2!important;letter-spacing:-.01em!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.scwms-page .scwms-cancelled-table .scwms-order-copy-value .scwms-copy-mini{width:24px!important;height:24px!important;margin:0!important;align-self:start!important}
body.scwms-page .scwms-cancelled-table .scwms-order-copy-value .scwms-copy-mini svg{width:13px!important;height:13px!important}
body.scwms-page .scwms-cancelled-table .scwms-cancelled-pack{font-size:11px!important;line-height:1.35!important;margin-top:7px!important}


/* v0.10.01 · sidebar: texto largo de Recupero de canceladas */
body.scwms-page .scwms-sidebar .scwms-nav-item[data-goto="cancel-recovery"] span,
body.scwms-page .scwms-sidebar .scwms-nav-item[data-goto="recupero-canceladas"] span{
  max-width:188px!important;
  font-size:11.6px!important;
  letter-spacing:-.01em!important;
}
@media(min-width:931px){
  body.scwms-page .scwms-sidebar .scwms-nav-item[data-goto="cancel-recovery"],
  body.scwms-page .scwms-sidebar .scwms-nav-item[data-goto="recupero-canceladas"]{
    gap:9px!important;
    padding-left:10px!important;
    padding-right:8px!important;
  }
}


/* v0.10.02 · alinear botón Limpiar filtros en Recupero de canceladas */
body.scwms-page .scwms-cancel-recovery-filters{align-items:end!important}
body.scwms-page .scwms-cancel-recovery-filters .scwms-cancelled-clear-wrap{display:flex!important;align-items:flex-end!important;height:auto!important;margin:0!important}
body.scwms-page .scwms-cancel-recovery-filters .scwms-cancelled-clear-wrap .scwms-btn{width:100%!important;height:42px!important;margin:0!important}
@media(max-width:1180px){body.scwms-page .scwms-cancel-recovery-filters .scwms-cancelled-clear-wrap{align-self:end!important}}


/* v0.10.03 · estados de recupero */
body.scwms-page .scwms-recovery-actions{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:190px}
body.scwms-page .scwms-recovery-status.is-requested{background:#eef4ff;border-color:#cfdcff;color:#255eb8}
body.scwms-page .scwms-recovery-request-btn,body.scwms-page .scwms-recovery-done-btn{min-height:32px!important;padding:6px 9px!important;border-radius:8px!important;font-size:10px!important;white-space:nowrap!important}
body.scwms-page .scwms-recovery-done-btn{background:#067647!important;border-color:#067647!important;color:#fff!important}
body.scwms-page .scwms-cancel-recovery-table td:nth-child(7){min-width:220px}


/* v0.10.05 · más espacio para Control físico en Canceladas */
body.scwms-page .scwms-cancelled-table th:nth-child(1){width:15%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(2){width:10.5%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(3){width:5.5%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(4){width:13%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(5){width:22.5%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(6){width:10%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(7){width:9.5%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(8){width:14%!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8){overflow:visible!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8) .scwms-cancel-safety-state{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;overflow:visible!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8) .scwms-cancel-safety-state b,
body.scwms-page .scwms-cancelled-table td:nth-child(8) .scwms-cancel-safety-state small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:normal!important;overflow-wrap:anywhere!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8) .scwms-history-open{width:100%!important;max-width:150px!important;margin-top:10px!important}


/* v0.10.06 · Inicio operativo + IDs completos en Canceladas */
body.scwms-page .scwms-cancelled-table th:nth-child(1){width:16.5%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(4){width:14%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(5){width:21%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(8){width:13.5%!important}
body.scwms-page .scwms-cancelled-table .scwms-order-copy-value{display:flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important;width:100%!important}
body.scwms-page .scwms-cancelled-table .scwms-order-copy-value strong{font-size:11.7px!important;letter-spacing:-.015em!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;flex:0 1 auto!important}
body.scwms-page .scwms-cancelled-table .scwms-order-copy-value .scwms-copy-mini{flex:0 0 23px!important;width:23px!important;height:23px!important;margin:0!important}
body.scwms-page .scwms-cancelled-table .scwms-cancelled-copy-row{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:nowrap!important;width:100%!important;margin-top:7px!important}
body.scwms-page .scwms-cancelled-table .scwms-cancelled-copy-row .scwms-cancelled-pack{display:inline!important;margin:0!important;white-space:nowrap!important;font-size:10.8px!important;line-height:1.25!important}
body.scwms-page .scwms-cancelled-table .scwms-cancelled-copy-row .scwms-copy-mini{flex:0 0 23px!important;width:23px!important;height:23px!important;margin:0!important}
body.scwms-page .scwms-home-kpi small{line-height:1.2!important}


/* v0.10.07 · faltantes de hoy / asignación manual */
.scwms-home-stage-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#scwms-home-missing-open{border-color:#f0c7cb;color:#b42318;background:#fff8f8}
.scwms-home-missing-modal{position:fixed;inset:0;background:rgba(16,24,40,.42);z-index:99998;display:none;align-items:center;justify-content:center;padding:24px}
.scwms-home-missing-modal.is-open{display:flex}
.scwms-home-missing-dialog{width:min(920px,96vw);max-height:82vh;overflow:hidden;background:#fff;border:1px solid #e4e7ec;border-radius:20px;box-shadow:0 30px 80px rgba(16,24,40,.22);display:flex;flex-direction:column}
.scwms-home-missing-dialog>header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:20px 22px;border-bottom:1px solid #eaecf0}
.scwms-home-missing-dialog>header h2{margin:0;font-size:20px}.scwms-home-missing-dialog>header p{margin:5px 0 0;color:#667085;font-size:13px}
#scwms-home-missing-close{appearance:none;border:0;background:#f2f4f7;width:34px;height:34px;border-radius:10px;font-size:22px;line-height:1;cursor:pointer;color:#475467}
.scwms-home-missing-list{padding:14px 18px 20px;overflow:auto}
.scwms-home-missing-item{display:grid;grid-template-columns:minmax(180px,1.15fr) minmax(130px,.7fr) minmax(320px,1.6fr);align-items:center;gap:14px;padding:14px 4px;border-bottom:1px solid #eef2f6}
.scwms-home-missing-item:last-child{border-bottom:0}.scwms-home-missing-main{display:flex;flex-direction:column;gap:4px}.scwms-home-missing-main b{font-size:14px;color:#101828}.scwms-home-missing-main span{font-size:12px;color:#667085}
.scwms-home-missing-stage{justify-self:start;padding:7px 10px;border-radius:9px;font-size:11px;font-weight:900}.scwms-home-missing-stage.is-picking{background:#fff4e0;color:#b36b00;border:1px solid #f1d4a1}.scwms-home-missing-stage.is-packing{background:#ffe9d9;color:#c95b12;border:1px solid #f6c79b}
.scwms-home-missing-assign{display:grid;grid-template-columns:minmax(150px,1fr) auto;gap:7px;align-items:center}.scwms-home-missing-assign select{height:38px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;padding:0 10px;font-size:12px;min-width:0}.scwms-home-missing-assign .scwms-btn{min-height:38px;padding:8px 12px}.scwms-home-missing-assign small{grid-column:1/-1;color:#667085;font-size:10.5px}
@media(max-width:760px){.scwms-home-missing-item{grid-template-columns:1fr}.scwms-home-missing-assign{grid-template-columns:1fr}.scwms-home-missing-assign small{grid-column:auto}}


/* v0.10.08 · confirmación de jornada completa */
body.scwms-page .scwms-day-complete-banner{display:flex;align-items:center;gap:12px;margin:14px 0 16px;padding:13px 15px;border:1px solid #e4e7ec;border-radius:14px;background:#f8fafc;color:#475467;transition:.18s ease}
body.scwms-page .scwms-day-complete-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:0 0 auto;background:#eef2f6;color:#667085;font-size:18px;font-weight:900}
body.scwms-page .scwms-day-complete-banner div{min-width:0;display:grid;gap:3px}
body.scwms-page .scwms-day-complete-banner b{font-size:13px;line-height:1.25;color:#344054}
body.scwms-page .scwms-day-complete-banner small{font-size:11.5px;line-height:1.4;color:#667085}
body.scwms-page .scwms-day-complete-banner.is-complete{border-color:#b7e0c2;background:#f2fbf5}
body.scwms-page .scwms-day-complete-banner.is-complete .scwms-day-complete-icon{background:#dff5e7;color:#067647}
body.scwms-page .scwms-day-complete-banner.is-complete b{color:#067647}
body.scwms-page .scwms-day-complete-banner.is-pending{border-color:#f1d4a1;background:#fffaf0}
body.scwms-page .scwms-day-complete-banner.is-pending .scwms-day-complete-icon{background:#fff0cc;color:#b36b00}
body.scwms-page .scwms-day-complete-banner.is-pending b{color:#9a5b00}


/* v0.10.11 · canceladas: ID Envío ME en dos líneas y copiar al lado del número */
body.scwms-page .scwms-cancelled-table .scwms-cancelled-shipment-id{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;margin-top:9px!important}
body.scwms-page .scwms-cancelled-table .scwms-cancelled-ship-label{display:block!important;margin:0!important;font-size:11px!important;line-height:1.2!important;color:#667085!important;font-weight:700!important}
body.scwms-page .scwms-cancelled-table .scwms-cancelled-copy-row{display:inline-flex!important;align-items:center!important;gap:7px!important;flex-wrap:nowrap!important;width:auto!important;max-width:100%!important;margin-top:0!important}
body.scwms-page .scwms-cancelled-table .scwms-cancelled-ship-value{display:inline-block!important;font-size:12px!important;line-height:1.25!important;color:#50627b!important;font-weight:800!important;white-space:nowrap!important}
body.scwms-page .scwms-cancelled-table .scwms-cancelled-copy-row .scwms-copy-mini{flex:0 0 23px!important;width:23px!important;height:23px!important;margin:0!important}


/* v0.10.12 · corte Flex real + control físico compacto */
body.scwms-page .scwms-cancelled-table .scwms-cancel-safety-state.is-done.is-compact{display:inline-flex!important;flex-direction:column!important;align-items:flex-start!important;min-width:118px!important;max-width:155px!important;padding:9px 10px!important;gap:3px!important}
body.scwms-page .scwms-cancelled-table .scwms-cancel-safety-state.is-done.is-compact b{font-size:12px!important;white-space:nowrap!important}
body.scwms-page .scwms-cancelled-table .scwms-cancel-safety-state.is-done.is-compact small{font-size:10.5px!important;line-height:1.3!important;color:#667085!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8){vertical-align:middle!important}
body.scwms-page .scwms-cancel-summary-actions{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important;min-width:0!important}
body.scwms-page .scwms-cancel-summary-actions .scwms-btn{min-width:118px!important;height:36px!important;padding:7px 12px!important}


/* v0.10.13 · Control físico sin recorte */
body.scwms-page .scwms-cancelled-table{table-layout:fixed!important;width:100%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(1){width:16.5%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(2){width:10%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(3){width:5%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(4){width:13.5%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(5){width:20%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(6){width:9.5%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(7){width:9%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(8){width:16.5%!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8){padding-left:12px!important;padding-right:12px!important;overflow:visible!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8) .scwms-cancel-summary-actions{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8) .scwms-cancel-safety-state.is-done.is-compact{width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8) .scwms-cancel-safety-state.is-done.is-compact small{overflow-wrap:normal!important;word-break:normal!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8) .scwms-history-open{width:100%!important;max-width:none!important;box-sizing:border-box!important}


/* v0.10.14 · control físico ultra compacto */
body.scwms-page .scwms-cancelled-table th:nth-child(8){width:14.5%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(5){width:21%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(1){width:17%!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8){padding-left:8px!important;padding-right:8px!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8) .scwms-cancel-summary-actions{gap:6px!important;align-items:stretch!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8) .scwms-cancel-safety-state.is-done.is-compact{padding:7px 8px!important;border-radius:10px!important;gap:2px!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8) .scwms-cancel-safety-state.is-done.is-compact b{font-size:11.5px!important;line-height:1.15!important;white-space:nowrap!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8) .scwms-cancel-safety-state.is-done.is-compact small{font-size:9.5px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8) .scwms-cancel-safety-none{min-height:34px!important;padding:7px 8px!important;font-size:10.5px!important;border-radius:10px!important}
body.scwms-page .scwms-cancelled-table td:nth-child(8) .scwms-cancel-summary-actions .scwms-btn{min-width:0!important;width:100%!important;height:32px!important;padding:5px 8px!important;font-size:10px!important;border-radius:10px!important}


/* v0.10.17 · Canceladas sin columna “Quién canceló” */
body.scwms-page .scwms-cancelled-table{table-layout:fixed!important;width:100%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(1){width:15%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(2){width:11%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(3){width:6%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(4){width:16%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(5){width:29%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(6){width:11%!important;text-align:center!important}
body.scwms-page .scwms-cancelled-table th:nth-child(7){width:12%!important;text-align:center!important}
body.scwms-page .scwms-cancelled-table td:nth-child(6){text-align:center!important;vertical-align:middle!important;padding-left:18px!important;padding-right:18px!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7){vertical-align:middle!important;padding-left:14px!important;padding-right:14px!important}
body.scwms-page .scwms-cancelled-table td:nth-child(6) .scwms-no-debe-salir{display:inline-flex!important;margin:0 auto!important;min-width:126px!important;justify-content:center!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-safety-none,
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-safety-state{margin-left:auto!important;margin-right:auto!important}


/* v0.10.18 · Control físico corregido tras remover “Quién canceló” */
body.scwms-page .scwms-cancelled-table th:nth-child(1){width:15%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(2){width:11%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(3){width:6%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(4){width:15%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(5){width:26%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(6){width:11%!important;text-align:center!important}
body.scwms-page .scwms-cancelled-table th:nth-child(7){width:16%!important;text-align:center!important;padding-left:20px!important;padding-right:24px!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7){vertical-align:middle!important;padding-left:20px!important;padding-right:24px!important;overflow:visible!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-summary-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;width:100%!important;max-width:150px!important;margin:0 auto!important;box-sizing:border-box!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-safety-state.is-done.is-compact{width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;padding:7px 9px!important;border-radius:10px!important;gap:2px!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-safety-state.is-done.is-compact b{font-size:11.5px!important;line-height:1.15!important;white-space:nowrap!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-safety-state.is-done.is-compact small{font-size:9.5px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-safety-none{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:36px!important;padding:7px 9px!important;font-size:10.5px!important;border-radius:10px!important;box-sizing:border-box!important;white-space:normal!important;text-align:center!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-summary-actions .scwms-btn,
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-history-open{width:100%!important;min-width:0!important;max-width:none!important;height:34px!important;padding:5px 8px!important;font-size:10px!important;border-radius:10px!important;box-sizing:border-box!important}


/* v0.10.19 · header de Control físico con margen correcto */
body.scwms-page .scwms-cancelled-table thead th:nth-child(6){text-align:center!important}
body.scwms-page .scwms-cancelled-table thead th:nth-child(7){padding-left:20px!important;padding-right:24px!important;text-align:center!important}


/* v0.10.20 · header CONTROL más corto y centrado */
body.scwms-page .scwms-cancelled-table thead th:nth-child(7){padding-left:28px!important;padding-right:28px!important;text-align:center!important;white-space:nowrap!important}


/* v0.10.22 · conciliación auditable de pedidos de hoy */
body.scwms-page .scwms-home-reconcile{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:10px 0 20px;padding:13px 16px;border:1px solid #dfe5ec;border-radius:14px;background:#fff}
body.scwms-page .scwms-home-reconcile small{display:block;margin-bottom:3px;color:#667085;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
body.scwms-page .scwms-home-reconcile b{font-size:12.5px;color:#344054}
body.scwms-page .scwms-home-audit-modal{position:fixed;inset:0;z-index:99990;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(15,23,42,.48)}
body.scwms-page .scwms-home-audit-modal.is-open{display:flex}
body.scwms-page .scwms-home-audit-dialog{width:min(980px,94vw);max-height:82vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 28px 70px rgba(15,23,42,.22);padding:20px}
body.scwms-page .scwms-home-audit-dialog>header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}
body.scwms-page .scwms-home-audit-dialog h2{margin:0 0 3px;font-size:20px}
body.scwms-page .scwms-home-audit-dialog p{margin:0;color:#667085;font-size:12px}
body.scwms-page #scwms-home-audit-close{border:0;background:#f2f4f7;border-radius:10px;width:34px;height:34px;font-size:22px;cursor:pointer}
body.scwms-page .scwms-home-audit-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
body.scwms-page .scwms-home-audit-filters button{border:1px solid #d0d5dd;background:#fff;color:#475467;border-radius:9px;padding:8px 11px;font-size:11px;font-weight:800;cursor:pointer}
body.scwms-page .scwms-home-audit-filters button.is-active{background:#111827;color:#fff;border-color:#111827}
body.scwms-page .scwms-home-audit-table{min-width:760px}


/* v0.10.23 · auditoría de programados: día + corte operativo */
body.scwms-page .scwms-home-audit-due{display:flex;flex-direction:column;gap:3px;align-items:flex-start}
body.scwms-page .scwms-home-audit-due>b{font-size:12px;color:#101828}
body.scwms-page .scwms-home-audit-due>small{font-size:10.5px;color:#667085;font-weight:700;white-space:nowrap}


/* v0.10.26 · detalle SKU e imagen */
body.scwms-page .scwms-order-product-meta>span:first-child b{white-space:nowrap!important;overflow:visible!important;word-break:normal!important;overflow-wrap:normal!important;font-size:12px!important}


/* v0.10.27 · Historial detalle en modal + filtros de cancelación estrictos */
body.scwms-page .scwms-history-detail-modal{z-index:100050!important;align-items:flex-start!important;padding:24px!important;overflow-y:auto!important}
body.scwms-page .scwms-history-detail-modal-card{width:min(1500px,96vw)!important;max-width:1500px!important;max-height:calc(100vh - 48px)!important;margin:auto!important;padding:24px!important;overflow:hidden!important;border-radius:18px!important}
body.scwms-page .scwms-history-detail-scroll{max-height:calc(100vh - 160px)!important;overflow-y:auto!important;padding-right:6px!important}
body.scwms-page .scwms-history-detail-head{padding-right:52px!important;margin-bottom:18px!important}
body.scwms-page.scwms-modal-open{overflow:hidden!important}


/* v0.10.28 · foto de producto + SKU en una sola línea en detalle de historial */
body.scwms-page .scwms-history-items-table th:first-child,
body.scwms-page .scwms-history-items-table td:first-child{width:78px}
body.scwms-page .scwms-history-item-photo-cell{vertical-align:middle!important}
body.scwms-page .scwms-history-item-photo{
  width:58px;
  height:58px;
  border-radius:12px;
  border:1px solid #e4e8ed;
  background:#fff;
  display:grid;
  place-items:center;
  overflow:hidden;
  box-shadow:0 8px 18px rgba(28,35,45,.05);
}
body.scwms-page .scwms-history-item-photo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  padding:5px;
  box-sizing:border-box;
}
body.scwms-page .scwms-history-item-photo>span{display:none;font-size:22px;opacity:.55}
body.scwms-page .scwms-history-item-photo.is-missing{background:#f5f7f9}
body.scwms-page .scwms-history-item-photo.is-missing>span{display:block}
body.scwms-page .scwms-history-item-sku,
body.scwms-page .scwms-history-item-sku b{
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
@media(max-width:900px){
  body.scwms-page .scwms-history-item-photo{width:48px;height:48px;border-radius:10px}
}


/* v0.10.29 · fecha de salida separada del corte operativo */
body.scwms-page .scwms-operational-date{display:flex;flex-direction:column;gap:4px;align-items:flex-start;min-width:0}
body.scwms-page .scwms-operational-date>b{font-size:12px;line-height:1.25;color:#1f2937;white-space:nowrap}
body.scwms-page .scwms-operational-date>small{font-size:10px;line-height:1.3;color:#667085;font-weight:700;white-space:normal}


/* v0.10.30 · detalle de historial: foto real + SKU indivisible */
body.scwms-page .scwms-history-items-table{table-layout:auto!important}
body.scwms-page .scwms-history-items-table th:nth-child(2),
body.scwms-page .scwms-history-items-table td:nth-child(2){width:118px!important;min-width:118px!important;white-space:nowrap!important}
body.scwms-page .scwms-history-items-table td:nth-child(2) b{display:inline-block!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;hyphens:none!important}
body.scwms-page .scwms-history-items-table th:first-child,
body.scwms-page .scwms-history-items-table td:first-child{width:72px!important;min-width:72px!important}


/* v0.10.31 · Pedidos por fecha de salida + modal sin datos residuales */
body.scwms-page .scwms-orders-schedule-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.scwms-page .scwms-orders-schedule-kpis>.scwms-kpi:nth-child(1),
body.scwms-page .scwms-orders-schedule-kpis>.scwms-kpi:nth-child(3){border-top:4px solid #4f7cff!important}
body.scwms-page .scwms-orders-schedule-kpis>.scwms-kpi:nth-child(2),
body.scwms-page .scwms-orders-schedule-kpis>.scwms-kpi:nth-child(4){border-top:4px solid #8b5cf6!important}
body.scwms-page .scwms-orders-schedule-kpis>.scwms-kpi:nth-child(3),
body.scwms-page .scwms-orders-schedule-kpis>.scwms-kpi:nth-child(4){background:#fbfcff!important}
body.scwms-page .scwms-history-loading-card{border:1px solid #eceef1;background:#fafbfc;border-radius:11px;padding:11px;min-width:160px}
body.scwms-page .scwms-history-loading-card small,
body.scwms-page .scwms-history-loading-card b{display:block}
body.scwms-page .scwms-history-loading-card small{font-size:9px;color:#697380;margin-bottom:5px}
body.scwms-page .scwms-history-loading-wide{grid-column:1/-1;border:1px dashed #dce1e8;border-radius:14px;padding:28px;text-align:center;color:#8b94a3;font-weight:700}
@media(max-width:1050px){body.scwms-page .scwms-orders-schedule-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){body.scwms-page .scwms-orders-schedule-kpis{grid-template-columns:1fr!important}}


/* v0.10.34 · Pedidos 4 cards en una fila + Reportes pasa a Rendimiento */
body.scwms-page .scwms-kpi-grid.scwms-commercial-kpis.scwms-sales-kpis.scwms-unified-order-kpis.scwms-orders-schedule-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  width:100%!important;
  max-width:none!important;
}
body.scwms-page .scwms-orders-schedule-kpis>.scwms-kpi{min-width:0!important}
body.scwms-page .scwms-performance-filters{margin-bottom:16px!important}
body.scwms-page .scwms-performance-filter-grid{grid-template-columns:repeat(5,minmax(0,1fr)) auto!important;align-items:end!important}
body.scwms-page .scwms-performance-filter-grid .scwms-report-filter-actions{align-self:end!important}
body.scwms-page .scwms-performance-filter-grid .scwms-report-filter-actions .scwms-btn{height:44px!important;white-space:nowrap!important}
body.scwms-page .scwms-performance-period-panel{margin-bottom:16px!important}
body.scwms-page .scwms-performance-period-panel .scwms-report-generated{margin-top:0!important}
body.scwms-page .scwms-performance-grid{align-items:stretch!important}
@media(max-width:1250px){
  body.scwms-page .scwms-kpi-grid.scwms-commercial-kpis.scwms-sales-kpis.scwms-unified-order-kpis.scwms-orders-schedule-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.scwms-page .scwms-performance-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:700px){
  body.scwms-page .scwms-kpi-grid.scwms-commercial-kpis.scwms-sales-kpis.scwms-unified-order-kpis.scwms-orders-schedule-kpis{grid-template-columns:1fr!important}
  body.scwms-page .scwms-performance-filter-grid{grid-template-columns:1fr!important}
}


/* v0.10.37 · conciliación: incidencias de entrega siguen fuera del pendiente */
body.scwms-page .scwms-home-audit-group{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
body.scwms-page .scwms-home-audit-group>small{font-size:10px;color:#667085;font-weight:700;line-height:1.25}


/* v0.10.45 · datos MercadoEnvíos visibles en cada pedido */
body.scwms-page .scwms-order-ml-detail-row>td{padding:0 16px 14px!important;border-top:0!important;background:#fff!important}
body.scwms-page .scwms-order-main-row>td{border-bottom:0!important}
body.scwms-page .scwms-order-ml-detail{border:1px solid #e7ebf0;background:#fafbfc;border-radius:12px;padding:11px 13px}
body.scwms-page .scwms-order-ml-detail-title{font-size:10px;font-weight:900;color:#344054;margin-bottom:9px}
body.scwms-page .scwms-order-ml-detail-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px 12px}
body.scwms-page .scwms-order-ml-detail-grid>div{min-width:0}
body.scwms-page .scwms-order-ml-detail-grid small,body.scwms-page .scwms-order-ml-detail-grid b{display:block}
body.scwms-page .scwms-order-ml-detail-grid small{font-size:8.5px;color:#7b8492;margin-bottom:3px}
body.scwms-page .scwms-order-ml-detail-grid b{font-size:10px;color:#202733;overflow-wrap:anywhere}
@media(max-width:1300px){body.scwms-page .scwms-order-ml-detail-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:800px){body.scwms-page .scwms-order-ml-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* v0.10.46 · MercadoEnvíos dentro del modal de detalle */
body.scwms-page .scwms-order-ml-detail-row{display:none!important}
body.scwms-page .scwms-history-mercadoenvios{border:1px solid #e6e9ee;background:#fafbfc;border-radius:14px;padding:16px}
body.scwms-page .scwms-history-me-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 18px}
body.scwms-page .scwms-history-me-grid>div{min-width:0}
body.scwms-page .scwms-history-me-grid small{display:block;font-size:10px;color:#6d7684;margin-bottom:5px}
body.scwms-page .scwms-history-me-grid b{display:block;font-size:12px;color:#1f2732;overflow-wrap:anywhere}
@media(max-width:1100px){body.scwms-page .scwms-history-me-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){body.scwms-page .scwms-history-me-grid{grid-template-columns:1fr}}


/* v0.10.47 · MercadoEnvíos dentro del modal correcto de Pedidos */
body.scwms-page .scwms-order-detail-mercadoenvios{margin-top:0!important}
body.scwms-page .scwms-order-detail-me-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:24px!important}
body.scwms-page .scwms-order-detail-me-list .scwms-order-detail-row{grid-template-columns:170px minmax(0,1fr)!important}
@media(max-width:800px){
  body.scwms-page .scwms-order-detail-me-list{grid-template-columns:1fr!important}
}


/* v0.10.48 · MercadoEnvíos ordenado como ficha MELI, sin receptor/teléfono duplicados */
body.scwms-page .scwms-order-detail-me-layout,
body.scwms-page .scwms-history-me-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 34px;margin-top:6px}
body.scwms-page .scwms-order-detail-me-column,
body.scwms-page .scwms-history-me-column{display:grid;align-content:start}
body.scwms-page .scwms-order-detail-me-row,
body.scwms-page .scwms-history-me-row{display:grid;grid-template-columns:minmax(150px,42%) minmax(0,1fr);gap:14px;align-items:center;min-height:38px;padding:8px 0;border-bottom:1px solid #edf0f3}
body.scwms-page .scwms-order-detail-me-row:last-child,
body.scwms-page .scwms-history-me-row:last-child{border-bottom:0}
body.scwms-page .scwms-order-detail-me-row span,
body.scwms-page .scwms-history-me-row span{font-size:10px;font-weight:700;color:#677181;text-align:right}
body.scwms-page .scwms-order-detail-me-row b,
body.scwms-page .scwms-history-me-row b{font-size:12px;color:#1d2430;overflow-wrap:anywhere}
@media(max-width:900px){
  body.scwms-page .scwms-order-detail-me-layout,
  body.scwms-page .scwms-history-me-layout{grid-template-columns:1fr;gap:0}
  body.scwms-page .scwms-order-detail-me-row,
  body.scwms-page .scwms-history-me-row{grid-template-columns:150px minmax(0,1fr)}
}
@media(max-width:560px){
  body.scwms-page .scwms-order-detail-me-row,
  body.scwms-page .scwms-history-me-row{grid-template-columns:1fr;gap:4px}
  body.scwms-page .scwms-order-detail-me-row span,
  body.scwms-page .scwms-history-me-row span{text-align:left}
}


/* v0.10.52 · fecha de salida en dos líneas en detalle de pedido */
body.scwms-page .scwms-order-detail-fact-split b{display:block!important;line-height:1.2!important}
body.scwms-page .scwms-order-detail-fact-split span{display:block!important;margin-top:5px!important;font-size:13px!important;line-height:1.25!important;font-weight:700!important;color:#667085!important;white-space:normal!important}


/* v0.10.53 · Fecha de salida en dos líneas dentro de Pedidos */
body.scwms-page .scwms-order-due{display:grid;gap:4px;line-height:1.2}
body.scwms-page .scwms-order-due b{font-size:12px;color:#111827;white-space:nowrap}
body.scwms-page .scwms-order-due small{font-size:10px;color:#667085;font-weight:700;white-space:nowrap}


/* v0.10.58 · filtro rápido por fecha de salida en Pedidos */
body.scwms-page .scwms-unified-orders-toolbar{align-items:flex-end!important;flex-wrap:wrap!important}
body.scwms-page .scwms-orders-date-group{min-width:max-content}
body.scwms-page .scwms-orders-date-filter{display:flex;gap:8px;flex-wrap:nowrap}
body.scwms-page .scwms-orders-date-picker-wrap{display:grid;gap:6px;min-width:150px}
body.scwms-page .scwms-orders-date-picker{height:50px;border:1px solid #d8dee6;border-radius:14px;background:#fff;padding:0 14px;font:700 13px Inter,sans-serif;color:#273142;box-sizing:border-box}
body.scwms-page .scwms-orders-date-picker:focus{outline:0;border-color:#e24b4f;box-shadow:0 0 0 3px rgba(226,75,79,.07)}
@media(max-width:1180px){body.scwms-page .scwms-orders-date-filter{flex-wrap:wrap}}


/* v0.10.61 · ENTREGADO verde + faltantes vacíos */
body.scwms-page .scwms-me-status-delivered{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  width:max-content;
  min-height:26px;
  padding:4px 10px;
  border-radius:999px;
  background:#eaf8ef;
  border:1px solid #b9e4c7;
  color:#087a34!important;
  font-weight:800!important;
  letter-spacing:.02em;
}


/* v0.10.63 · ENTREGADO como etapa operativa, no como valor técnico del modal */
body.scwms-page .status-delivered,
body.scwms-page .scwms-pill.status-delivered{
  background:#e8f8ef!important;
  border-color:#bfe7cf!important;
  color:#087a3e!important;
}


/* v0.10.64 · estado MELI ready_to_print */
body.scwms-page .status-ready-to-print{background:#eef6ff!important;border-color:#c9ddff!important;color:#245bb7!important}


/* v0.10.65 · código de autorización condicional en Informar colecta */
body.scwms-page .scwms-admin-auth-code[hidden]{display:none!important}
body.scwms-page .scwms-admin-auth-code{min-width:0}
body.scwms-page .scwms-admin-auth-code input{width:100%;box-sizing:border-box}

/* v0.10.67: Historial - reservar espacio real para la acción final. */
body.scwms-page .scwms-history-table th:last-child,
body.scwms-page .scwms-history-table td:last-child{width:112px!important;min-width:112px!important;padding-left:12px!important;padding-right:18px!important;text-align:center!important;box-sizing:border-box!important}
body.scwms-page .scwms-history-table td:last-child .scwms-history-open{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:86px!important;max-width:96px!important;box-sizing:border-box!important}


/* v0.10.72 · filtros compactos + limpiar búsqueda visible */
body.scwms-page .scwms-orders-date-picker-wrap{
  min-width:0!important;
  width:220px!important;
  flex:0 0 220px!important;
}
body.scwms-page .scwms-orders-date-picker{
  width:100%!important;
  height:44px!important;
  min-height:44px!important;
  padding:0 12px!important;
  border-radius:12px!important;
}
body.scwms-page .scwms-orders-main-search{position:relative!important;padding-right:10px!important}
body.scwms-page .scwms-orders-main-search input[type=search]::-webkit-search-cancel-button{display:none!important;-webkit-appearance:none!important}
body.scwms-page .scwms-orders-search-clear{
  appearance:none;
  border:0;
  background:transparent;
  color:#315f9f;
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
  border-radius:8px;
  padding:0;
  font:700 21px/1 Arial,sans-serif;
  cursor:pointer;
  transition:background .15s ease,color .15s ease,transform .15s ease;
}
body.scwms-page .scwms-orders-search-clear:hover{background:#eef4fb;color:#164f91;transform:scale(1.04)}
body.scwms-page .scwms-orders-search-clear:focus-visible{outline:2px solid #7aa7dc;outline-offset:1px}
body.scwms-page .scwms-orders-search-clear[hidden]{display:none!important}
@media(max-width:1180px){
  body.scwms-page .scwms-orders-date-picker-wrap{width:190px!important;flex-basis:190px!important}
}
@media(max-width:720px){
  body.scwms-page .scwms-orders-date-picker-wrap{width:100%!important;flex:1 1 100%!important}
}
\n\n/* v0.10.73 · buscadores consistentes + toolbar Pedidos centrada */\nbody.scwms-page .scwms-orders-toolbar{\n  display:flex!important;\n  align-items:flex-end!important;\n  justify-content:center!important;\n  gap:16px!important;\n  flex-wrap:wrap!important;\n}\nbody.scwms-page .scwms-orders-main-search{\n  width:360px!important;\n  flex:0 1 360px!important;\n  min-width:300px!important;\n}\nbody.scwms-page .scwms-orders-main-search input{width:100%!important}\nbody.scwms-page .scwms-orders-auto-state{\n  flex:0 0 100%!important;\n  display:flex!important;\n  justify-content:flex-start!important;\n  padding-left:102px!important;\n  box-sizing:border-box!important;\n}\nbody.scwms-page .scwms-orders-date-picker-wrap{width:190px!important;flex:0 0 190px!important}\nbody.scwms-page .scwms-orders-date-picker{height:44px!important;min-height:44px!important}\n\nbody.scwms-page .scwms-search-with-clear{position:relative!important;padding-right:8px!important}\nbody.scwms-page .scwms-search-with-clear input[type=search]::-webkit-search-cancel-button{display:none!important;-webkit-appearance:none!important}\nbody.scwms-page .scwms-search-clear-global{\n  appearance:none!important;\n  border:0!important;\n  background:transparent!important;\n  color:#315f9f!important;\n  width:30px!important;\n  height:30px!important;\n  flex:0 0 30px!important;\n  display:grid!important;\n  place-items:center!important;\n  border-radius:8px!important;\n  padding:0!important;\n  font:700 21px/1 Arial,sans-serif!important;\n  cursor:pointer!important;\n  transition:background .15s ease,color .15s ease,transform .15s ease!important;\n}\nbody.scwms-page .scwms-search-clear-global:hover{background:#eef4fb!important;color:#164f91!important;transform:scale(1.04)!important}\nbody.scwms-page .scwms-search-clear-global:focus-visible{outline:2px solid #7aa7dc!important;outline-offset:1px!important}\nbody.scwms-page .scwms-search-clear-global[hidden]{display:none!important}\n\n@media(max-width:1280px){\n  body.scwms-page .scwms-orders-main-search{width:320px!important;flex-basis:320px!important}\n  body.scwms-page .scwms-orders-auto-state{padding-left:0!important;justify-content:center!important}\n}\n@media(max-width:760px){\n  body.scwms-page .scwms-orders-toolbar{align-items:stretch!important;justify-content:stretch!important}\n  body.scwms-page .scwms-orders-main-search,\n  body.scwms-page .scwms-orders-date-picker-wrap{width:100%!important;min-width:0!important;flex:1 1 100%!important}\n}\n
/* v0.10.74 · layout consistente Pedidos / Canceladas */
body.scwms-page .scwms-orders-main-search{
  width:500px!important;
  flex:0 1 500px!important;
  min-width:380px!important;
  max-width:560px!important;
}
body.scwms-page .scwms-orders-main-search input{width:100%!important;min-width:0!important}

body.scwms-page .scwms-cancelled-filters{
  display:grid!important;
  grid-template-columns:minmax(210px,1.05fr) minmax(190px,1fr) minmax(190px,1fr) minmax(190px,1fr)!important;
  gap:14px!important;
  align-items:end!important;
  width:100%!important;
}
body.scwms-page .scwms-cancelled-filters label{min-width:0!important}
body.scwms-page .scwms-cancelled-filters input,
body.scwms-page .scwms-cancelled-filters select,
body.scwms-page .scwms-cancelled-filters .scwms-cancelled-clear-wrap,
body.scwms-page .scwms-cancelled-filters .scwms-cancelled-clear-wrap .scwms-btn{
  width:100%!important;
  box-sizing:border-box!important;
}
body.scwms-page .scwms-cancelled-filters .scwms-cancelled-clear-wrap{display:block!important}
body.scwms-page .scwms-cancelled-filters .scwms-cancelled-clear-wrap .scwms-btn{height:42px!important;min-height:42px!important}
body.scwms-page .scwms-cancelled-summary{padding-right:8px!important}

body.scwms-page .scwms-cancelled-panel .scwms-table-wrap{
  overflow-x:auto!important;
  overflow-y:hidden!important;
  max-width:100%!important;
  -webkit-overflow-scrolling:touch!important;
}
body.scwms-page .scwms-cancelled-table{
  width:100%!important;
  min-width:1320px!important;
  table-layout:fixed!important;
}
body.scwms-page .scwms-cancelled-table th,
body.scwms-page .scwms-cancelled-table td{box-sizing:border-box!important}
body.scwms-page .scwms-cancelled-table th:nth-child(1){width:16%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(2){width:12%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(3){width:7%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(4){width:15%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(5){width:27%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(6){width:11%!important;text-align:center!important}
body.scwms-page .scwms-cancelled-table th:nth-child(7){width:12%!important;text-align:center!important;padding-left:20px!important;padding-right:20px!important}
body.scwms-page .scwms-cancelled-table td:nth-child(6){padding-left:16px!important;padding-right:16px!important;text-align:center!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7){padding-left:18px!important;padding-right:18px!important;text-align:center!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-summary-actions{max-width:138px!important;margin:0 auto!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-history-open{min-width:96px!important}

@media(max-width:1380px){
  body.scwms-page .scwms-orders-main-search{width:430px!important;flex-basis:430px!important;min-width:340px!important}
  body.scwms-page .scwms-cancelled-filters{grid-template-columns:repeat(2,minmax(220px,1fr))!important}
}
@media(max-width:760px){
  body.scwms-page .scwms-orders-main-search{width:100%!important;min-width:0!important;max-width:none!important;flex:1 1 100%!important}
  body.scwms-page .scwms-cancelled-filters{grid-template-columns:1fr!important}
}

/* v0.10.75 · buscador principal de Pedidos más ancho */
body.scwms-page .scwms-orders-main-search{
  width:680px!important;
  flex:1 1 680px!important;
  min-width:460px!important;
  max-width:760px!important;
}
body.scwms-page .scwms-orders-main-search input{
  width:100%!important;
  min-width:0!important;
}
@media(max-width:1380px){
  body.scwms-page .scwms-orders-main-search{
    width:560px!important;
    flex-basis:560px!important;
    min-width:380px!important;
    max-width:100%!important;
  }
}
@media(max-width:760px){
  body.scwms-page .scwms-orders-main-search{
    width:100%!important;
    flex:1 1 100%!important;
    min-width:0!important;
    max-width:none!important;
  }
}


/* v0.10.75 · buscador Pedidos realmente ancho + X interna consistente */
body.scwms-page .scwms-orders-toolbar{
  justify-content:flex-start!important;
  column-gap:18px!important;
  row-gap:14px!important;
}
body.scwms-page .scwms-orders-main-search{
  width:clamp(500px,34vw,650px)!important;
  min-width:500px!important;
  max-width:650px!important;
  flex:0 0 clamp(500px,34vw,650px)!important;
  margin-left:auto!important;
  box-sizing:border-box!important;
}
body.scwms-page .scwms-orders-main-search input{
  width:100%!important;
  min-width:0!important;
}

/* Los buscadores que son input directo dentro de un label usan este shell para que la X
   quede DENTRO del campo y nunca aparezca como una segunda barra debajo. */
body.scwms-page .scwms-inline-search-shell{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
}
body.scwms-page .scwms-inline-search-shell > input[type=search]{
  width:100%!important;
  min-width:0!important;
  padding-right:42px!important;
  box-sizing:border-box!important;
}
body.scwms-page .scwms-inline-search-shell > .scwms-search-clear-global{
  position:absolute!important;
  right:7px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:3!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  cursor:pointer!important;
}
body.scwms-page .scwms-inline-search-shell > .scwms-search-clear-global:hover{
  transform:translateY(-50%) scale(1.05)!important;
  background:#eef4fb!important;
}

/* También aseguramos la X propia dentro de búsquedas con contenedor flex. */
body.scwms-page .scwms-search-with-clear{position:relative!important}
body.scwms-page .scwms-search-with-clear > input[type=search]{padding-right:42px!important;box-sizing:border-box!important}
body.scwms-page .scwms-search-with-clear > .scwms-search-clear-global{
  position:absolute!important;
  right:7px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:3!important;
}
body.scwms-page .scwms-search-with-clear > .scwms-search-clear-global:hover{
  transform:translateY(-50%) scale(1.05)!important;
}

@media(max-width:1500px){
  body.scwms-page .scwms-orders-main-search{
    width:500px!important;
    min-width:500px!important;
    max-width:500px!important;
    flex:0 0 500px!important;
  }
}
@media(max-width:1220px){
  body.scwms-page .scwms-orders-main-search{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    flex:1 1 100%!important;
    margin-left:0!important;
  }
}

/* v0.10.77 · Historial: las nueve columnas caben dentro del panel en escritorio.
   Mantener completos los identificadores; sólo permitir el scroll en pantallas angostas. */
@media (min-width: 1151px) {
  body.scwms-page .scwms-history-table {
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    table-layout:fixed!important;
  }
  body.scwms-page .scwms-history-table th,
  body.scwms-page .scwms-history-table td {
    box-sizing:border-box!important;
    min-width:0!important;
    padding-left:9px!important;
    padding-right:9px!important;
    vertical-align:middle!important;
  }
  body.scwms-page .scwms-history-table th:nth-child(1){width:15%!important}
  body.scwms-page .scwms-history-table th:nth-child(2){width:22%!important}
  body.scwms-page .scwms-history-table th:nth-child(3){width:11%!important}
  body.scwms-page .scwms-history-table th:nth-child(4){width:8%!important}
  body.scwms-page .scwms-history-table th:nth-child(5){width:15%!important}
  body.scwms-page .scwms-history-table th:nth-child(6),
  body.scwms-page .scwms-history-table th:nth-child(7),
  body.scwms-page .scwms-history-table th:nth-child(8){width:7%!important}
  body.scwms-page .scwms-history-table th:nth-child(9){width:8%!important}
  body.scwms-page .scwms-history-table td:first-child b,
  body.scwms-page .scwms-history-table .scwms-history-shipment-id b {
    white-space:nowrap!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  body.scwms-page .scwms-history-table .scwms-history-shipment-id,
  body.scwms-page .scwms-history-table .scwms-history-tracking {
    min-width:0!important;
    max-width:100%!important;
  }
  body.scwms-page .scwms-history-table .scwms-history-tracking span {
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  body.scwms-page .scwms-history-table td:nth-child(5) .scwms-pill {
    display:inline-flex!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    text-align:center!important;
    line-height:1.2!important;
  }
  body.scwms-page .scwms-history-table th:last-child,
  body.scwms-page .scwms-history-table td:last-child {
    min-width:0!important;
    width:8%!important;
    padding-left:4px!important;
    padding-right:8px!important;
    text-align:center!important;
  }
  body.scwms-page .scwms-history-table td:last-child .scwms-history-open {
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding:8px 5px!important;
    font-size:10px!important;
  }
  body.scwms-page .scwms-history-table td:nth-child(6),
  body.scwms-page .scwms-history-table td:nth-child(7),
  body.scwms-page .scwms-history-table td:nth-child(8){overflow-wrap:break-word!important}
}
@media (max-width:1150px){
  body.scwms-page .scwms-history-table {min-width:1050px!important;table-layout:auto!important}
  body.scwms-page .scwms-history-table th:last-child,
  body.scwms-page .scwms-history-table td:last-child{min-width:105px!important;width:105px!important}
}

/* v0.10.79: tablas de rendimiento contenidas y legibles */
body.scwms-page .scwms-report-table-scroll{width:100%;max-width:100%;overflow-x:auto}
body.scwms-page .scwms-report-table-scroll .scwms-report-mini-table{table-layout:auto;min-width:540px}
body.scwms-page .scwms-report-table-scroll .scwms-report-mini-table td{overflow-wrap:anywhere}

/* v0.10.83 - Una cuota por grupo; publicaciones y enlaces alineados. */
body.scwms-page .scwms-products-table .scwms-product-mla-cell .scwms-product-tier,
body.scwms-page .scwms-products-table .scwms-product-quotas-cell .scwms-product-tier,
body.scwms-page .scwms-products-table .scwms-product-links-cell .scwms-product-tier{
  box-sizing:border-box;
  justify-content:center;
  border-bottom:1px solid #dce2ea;
  overflow:visible;
}
body.scwms-page .scwms-products-table .scwms-product-tier:last-child{border-bottom:0}
body.scwms-page .scwms-products-table .scwms-product-link-row{
  display:flex;align-items:center;box-sizing:border-box;min-height:32px;
}
body.scwms-page .scwms-products-table .scwms-product-link-vs{display:flex;align-items:center;min-height:20px}
body.scwms-page .scwms-products-table .scwms-product-quota-tier .scwms-quota-row{justify-content:center;min-height:40px}

body.scwms-page .scwms-product-photo.is-missing>span{font-size:10px!important;font-weight:700;color:#8b95a3;opacity:1;line-height:1.3;text-align:center;padding:8px}

/* ===== origen: wms-0857-fix.css ===== */
/* =============================================================
   Smartclick WMS v0.8.57
   Corrección puntual pedida:
   - conserva el sidebar oscuro original;
   - fuerza la maquetación del nuevo Inicio aunque haya caché del CSS base.
   ============================================================= */

/* SIDEBAR: volver y mantener la identidad oscura. */
body.scwms-page .scwms-sidebar{
  background:#17161A!important;
  border-right:0!important;
  color:#fff!important;
}
body.scwms-page .scwms-sidebar .scwms-brand,
body.scwms-page .scwms-sidebar .scwms-brand span,
body.scwms-page .scwms-sidebar .scwms-user-card strong{
  color:#fff!important;
}
body.scwms-page .scwms-sidebar .scwms-nav-section{color:#77727c!important}
body.scwms-page .scwms-sidebar .scwms-nav-section::after{background:#2A282E!important}
body.scwms-page .scwms-sidebar .scwms-nav-item{
  color:#c2bec6!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.scwms-page .scwms-sidebar .scwms-nav-item:hover{
  color:#fff!important;
  background:#211F24!important;
}
body.scwms-page .scwms-sidebar .scwms-nav-item.is-active{
  color:#fff!important;
  background:#2A282E!important;
  box-shadow:inset 3px 0 0 #c51f2f!important;
}
body.scwms-page .scwms-sidebar .scwms-sidebar-bottom{
  border-top-color:#2A282E!important;
}
body.scwms-page .scwms-sidebar .scwms-user-card,
body.scwms-page .scwms-sidebar .scwms-device-card{
  background:#211F24!important;
  border:1px solid #302d34!important;
  box-shadow:none!important;
  color:#c2bec6!important;
}
body.scwms-page .scwms-sidebar .scwms-user-card small,
body.scwms-page .scwms-sidebar .scwms-device-card small,
body.scwms-page .scwms-sidebar .scwms-chevron{color:#98939d!important}
body.scwms-page .scwms-sidebar .scwms-device-card strong{color:#e1dee3!important}
body.scwms-page .scwms-sidebar .scwms-avatar{background:#c51f2f!important;color:#fff!important}

@media(min-width:931px){
  body.scwms-page .scwms-sidebar{
    position:fixed!important;
    left:0!important;
    top:0!important;
    bottom:0!important;
    width:268px!important;
    min-width:268px!important;
    height:100vh!important;
    padding:20px 16px 16px!important;
    overflow-y:auto!important;
  }
  body.scwms-page .scwms-main{
    margin-left:268px!important;
    width:calc(100% - 268px)!important;
    min-width:0!important;
    max-width:none!important;
  }
}

/* INICIO: estructura completa de la referencia. */
body.scwms-page .scwms-section[data-section="inicio"]{width:100%!important;min-width:0!important}
body.scwms-page .scwms-home-v2{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  color:#111827!important;
}
body.scwms-page .scwms-home-v2 *{box-sizing:border-box}
body.scwms-page .scwms-home-heading{display:block!important;margin:0 0 15px!important}
body.scwms-page .scwms-home-heading h1{
  margin:0 0 6px!important;
  font-size:29px!important;
  line-height:1.02!important;
  font-weight:900!important;
  letter-spacing:-.8px!important;
  color:#101318!important;
}
body.scwms-page .scwms-home-heading p{
  margin:0!important;
  font-size:14px!important;
  line-height:1.4!important;
  color:#687386!important;
  font-weight:500!important;
}

body.scwms-page .scwms-home-kpis{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  margin:0 0 14px!important;
}
body.scwms-page .scwms-home-kpi{
  display:flex!important;
  align-items:flex-start!important;
  gap:13px!important;
  min-width:0!important;
  min-height:106px!important;
  margin:0!important;
  padding:16px 17px!important;
  border:1px solid #e3e7ed!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 7px 24px rgba(32,42,57,.035)!important;
}
body.scwms-page .scwms-home-kpi-icon{
  display:grid!important;
  place-items:center!important;
  width:40px!important;
  height:40px!important;
  border-radius:11px!important;
  flex:0 0 40px!important;
}
body.scwms-page .scwms-home-kpi-icon .scwms-icon{width:19px!important;height:19px!important}
body.scwms-page .scwms-home-kpi>div{min-width:0!important}
body.scwms-page .scwms-home-kpi small{
  display:block!important;
  margin:1px 0 7px!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:700!important;
  color:#273143!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
body.scwms-page .scwms-home-kpi strong{
  display:block!important;
  margin:0 0 6px!important;
  font-size:31px!important;
  line-height:1!important;
  font-weight:900!important;
  color:#0b1018!important;
  letter-spacing:-.7px!important;
}
body.scwms-page .scwms-home-kpi em{
  display:block!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-style:normal!important;
  color:#718096!important;
  white-space:normal!important;
}
body.scwms-page .scwms-home-kpi.is-pending .scwms-home-kpi-icon{background:#fdecee!important;color:#d6112b!important}
body.scwms-page .scwms-home-kpi.is-preparing .scwms-home-kpi-icon{background:#f8e8bb!important;color:#9d6900!important}
body.scwms-page .scwms-home-kpi.is-ready .scwms-home-kpi-icon{background:#e8f7ee!important;color:#0a8a4b!important}
body.scwms-page .scwms-home-kpi.is-review .scwms-home-kpi-icon{background:#fff0f1!important;color:#d6112b!important}
body.scwms-page .scwms-home-kpi.is-review strong{color:#cf1130!important}

body.scwms-page .scwms-home-main-grid{
  display:grid!important;
  grid-template-columns:1.06fr 1.06fr 1fr!important;
  gap:14px!important;
  margin:0 0 14px!important;
  align-items:stretch!important;
}
body.scwms-page .scwms-home-panel{
  display:block!important;
  min-width:0!important;
  margin:0!important;
  padding:16px!important;
  border:1px solid #e2e6ec!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 7px 24px rgba(32,42,57,.03)!important;
}
body.scwms-page .scwms-home-panel>header{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin:0 0 13px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
}
body.scwms-page .scwms-home-panel>header h2{
  margin:0 0 3px!important;
  font-size:16px!important;
  line-height:1.2!important;
  font-weight:900!important;
  color:#151922!important;
  letter-spacing:-.2px!important;
}
body.scwms-page .scwms-home-panel>header p{
  margin:0!important;
  font-size:12px!important;
  line-height:1.3!important;
  color:#7a8493!important;
  font-weight:500!important;
}

body.scwms-page .scwms-home-stage-list{display:grid!important;gap:11px!important}
body.scwms-page .scwms-home-stage-row>div:first-child{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 5px!important}
body.scwms-page .scwms-home-stage-row span{font-size:12.5px!important;line-height:1.2!important;font-weight:700!important;color:#202938!important}
body.scwms-page .scwms-home-stage-row b{font-size:12.5px!important;line-height:1.2!important;font-weight:900!important;color:#10151d!important}
body.scwms-page .scwms-home-stage-bar{display:block!important;height:8px!important;border-radius:99px!important;background:#edf0f4!important;overflow:hidden!important}
body.scwms-page .scwms-home-stage-bar i{display:block!important;height:100%!important;width:0;border-radius:inherit!important;transition:width .25s ease!important;background:#2d70ef!important}
body.scwms-page .scwms-home-stage-row.is-preparing .scwms-home-stage-bar i{background:#b97c00!important}
body.scwms-page .scwms-home-stage-row.is-picked .scwms-home-stage-bar i{background:#47ae88!important}
body.scwms-page .scwms-home-stage-row.is-packing .scwms-home-stage-bar i{background:#c38200!important}
body.scwms-page .scwms-home-stage-row.is-ready .scwms-home-stage-bar i{background:#168653!important}
body.scwms-page .scwms-home-stage-row.is-done .scwms-home-stage-bar i{background:#8994a3!important}

body.scwms-page .scwms-home-due-list{display:grid!important;gap:10px!important}
body.scwms-page .scwms-home-channel{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:11px!important;
  min-height:63px!important;
  padding:11px 12px!important;
  border:1px solid #e4e8ee!important;
  border-radius:12px!important;
  background:#fff!important;
}
body.scwms-page .scwms-home-channel-badge{display:inline-block!important;min-width:49px!important;padding:7px 8px!important;border-radius:8px!important;text-align:center!important;font-size:11px!important;line-height:1!important;font-weight:900!important;letter-spacing:.25px!important}
body.scwms-page .scwms-home-channel-badge.flex{background:#edf4ff!important;color:#2862c8!important}
body.scwms-page .scwms-home-channel-badge.colecta{background:#f3eafb!important;color:#723bb0!important}
body.scwms-page .scwms-home-channel-copy{min-width:0!important}
body.scwms-page .scwms-home-channel-copy b{display:block!important;font-size:15px!important;line-height:1.15!important;color:#121722!important;font-weight:900!important}
body.scwms-page .scwms-home-channel-copy small{display:block!important;margin-top:3px!important;font-size:11.5px!important;line-height:1.2!important;color:#7b8491!important}
body.scwms-page .scwms-home-channel-state{font-size:11.5px!important;line-height:1.1!important;font-weight:900!important;color:#4c5867!important;white-space:nowrap!important}
body.scwms-page .scwms-home-channel-state.is-success{color:#0a8447!important}
body.scwms-page .scwms-home-channel-state.is-warning{color:#a06d00!important}
body.scwms-page .scwms-home-channel-state.is-muted{color:#7d8795!important}
body.scwms-page .scwms-home-late{padding:11px 12px!important;border:1px solid #f0b8bd!important;border-radius:12px!important;background:#fff3f4!important;color:#b01325!important}
body.scwms-page .scwms-home-late b{display:block!important;font-size:13px!important;line-height:1.2!important;font-weight:900!important}
body.scwms-page .scwms-home-late small{display:block!important;margin-top:4px!important;font-size:11.5px!important;color:#a54855!important}

body.scwms-page .scwms-home-workers{display:grid!important;gap:9px!important}
body.scwms-page .scwms-home-worker{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  min-height:53px!important;
  padding:9px 10px!important;
  border:1px solid #e7eaf0!important;
  border-radius:12px!important;
  background:#fff!important;
}
body.scwms-page .scwms-home-worker-avatar{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border-radius:50%!important;background:#f3f5f7!important;color:#596579!important;font-size:11px!important;font-weight:900!important}
body.scwms-page .scwms-home-worker>div{min-width:0!important}
body.scwms-page .scwms-home-worker b{display:block!important;font-size:12.5px!important;line-height:1.18!important;color:#10151c!important;font-weight:900!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.scwms-page .scwms-home-worker small{display:block!important;margin-top:3px!important;font-size:11px!important;line-height:1.2!important;color:#727d8e!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.scwms-page .scwms-home-worker em{padding:6px 8px!important;border-radius:7px!important;font-size:10.5px!important;line-height:1!important;font-style:normal!important;font-weight:900!important;white-space:nowrap!important;background:#eef2f7!important;color:#536074!important}
body.scwms-page .scwms-home-worker em.role-picker{background:#edf4ff!important;color:#285cb5!important}
body.scwms-page .scwms-home-worker em.role-packer{background:#f6ecfb!important;color:#763db3!important}
body.scwms-page .scwms-home-worker em.role-despacho{background:#f1f2f4!important;color:#4b5563!important}
body.scwms-page .scwms-home-worker em.role-auditoria{background:#e8f7ee!important;color:#0b7a46!important}
body.scwms-page .scwms-home-worker-empty{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-height:76px!important;padding:14px!important;border:1px dashed #dfe4ea!important;border-radius:12px!important;text-align:center!important;color:#7a8493!important;font-size:12px!important}
body.scwms-page .scwms-home-worker-empty b{color:#3a4452!important;margin-bottom:3px!important}
body.scwms-page .scwms-home-worker-empty span{font-size:11.5px!important}

body.scwms-page .scwms-home-recent-panel{padding:16px!important}
body.scwms-page .scwms-home-orders-link{flex:0 0 auto!important;border:1px solid #efc1c6!important;border-radius:9px!important;background:#fff!important;color:#c4152a!important;padding:9px 13px!important;font:900 12px/1.1 'Inter',sans-serif!important;cursor:pointer!important}
body.scwms-page .scwms-home-orders-link:hover{background:#fff5f6!important;border-color:#e7aeb5!important}
body.scwms-page .scwms-home-table-wrap{display:block!important;width:100%!important;overflow-x:auto!important;border:1px solid #e3e7ed!important;border-radius:12px!important;background:#fff!important}
body.scwms-page .scwms-home-table{width:100%!important;min-width:810px!important;border-collapse:collapse!important;table-layout:fixed!important}
body.scwms-page .scwms-home-table th{padding:11px 13px!important;background:#fafbfc!important;border-bottom:1px solid #e4e8ee!important;text-align:left!important;font-size:10.5px!important;line-height:1.2!important;font-weight:900!important;letter-spacing:.35px!important;color:#8190a3!important}
body.scwms-page .scwms-home-table td{padding:12px 13px!important;border-bottom:1px solid #edf0f4!important;font-size:12.5px!important;line-height:1.25!important;color:#1d2633!important;vertical-align:middle!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.scwms-page .scwms-home-table tbody tr:last-child td{border-bottom:0!important}
body.scwms-page .scwms-home-table td:first-child b{font-weight:900!important;color:#111827!important}
body.scwms-page .scwms-home-table td.empty{text-align:center!important;color:#7d8795!important;padding:24px!important}
body.scwms-page .scwms-home-table th:nth-child(1){width:15%!important}
body.scwms-page .scwms-home-table th:nth-child(2){width:31%!important}
body.scwms-page .scwms-home-table th:nth-child(3){width:8%!important}
body.scwms-page .scwms-home-table th:nth-child(4){width:20%!important}
body.scwms-page .scwms-home-table th:nth-child(5){width:13%!important}
body.scwms-page .scwms-home-table th:nth-child(6){width:13%!important}
body.scwms-page .scwms-home-stage-pill{display:inline-block!important;max-width:100%!important;padding:6px 9px!important;border-radius:7px!important;font-size:10.5px!important;line-height:1!important;font-weight:900!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;border:1px solid transparent!important}
body.scwms-page .scwms-home-stage-pill.is-pending{background:#edf4ff!important;color:#255eb8!important;border-color:#d5e4ff!important}
body.scwms-page .scwms-home-stage-pill.is-preparing,
body.scwms-page .scwms-home-stage-pill.is-packing{background:#fff1d3!important;color:#8b6200!important;border-color:#efd394!important}
body.scwms-page .scwms-home-stage-pill.is-picked,
body.scwms-page .scwms-home-stage-pill.is-ready{background:#e8f7ee!important;color:#0b7c49!important;border-color:#ccebd8!important}
body.scwms-page .scwms-home-stage-pill.is-done{background:#eff1f4!important;color:#5e6978!important;border-color:#e0e4e9!important}
body.scwms-page .scwms-home-stage-pill.is-review{background:#fff0f1!important;color:#c3162b!important;border-color:#f2c7cc!important}
body.scwms-page .scwms-home-due-cell{font-weight:900!important;color:#0a8145!important}

@media(max-width:1280px){
  body.scwms-page .scwms-home-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.scwms-page .scwms-home-main-grid{grid-template-columns:1fr 1fr!important}
  body.scwms-page .scwms-home-workers-panel{grid-column:1/-1!important}
  body.scwms-page .scwms-home-workers{grid-template-columns:1fr 1fr!important}
}
@media(max-width:930px){
  body.scwms-page .scwms-sidebar{background:#17161A!important;color:#fff!important}
}
@media(max-width:820px){
  body.scwms-page .scwms-home-main-grid{grid-template-columns:1fr!important}
  body.scwms-page .scwms-home-workers-panel{grid-column:auto!important}
  body.scwms-page .scwms-home-workers{grid-template-columns:1fr!important}
  body.scwms-page .scwms-home-heading h1{font-size:27px!important}
}
@media(max-width:560px){
  body.scwms-page .scwms-home-kpis{grid-template-columns:1fr!important;gap:10px!important}
  body.scwms-page .scwms-home-kpi{min-height:94px!important;padding:14px!important}
  body.scwms-page .scwms-home-panel,
  body.scwms-page .scwms-home-recent-panel{padding:14px!important}
  body.scwms-page .scwms-home-panel>header{display:block!important}
  body.scwms-page .scwms-home-orders-link{margin-top:10px!important;width:100%!important}
  body.scwms-page .scwms-home-channel{grid-template-columns:auto minmax(0,1fr)!important}
  body.scwms-page .scwms-home-channel-state{grid-column:2!important;justify-self:start!important;margin-top:-3px!important}
}

/* v0.8.50 · Canceladas: motivo, origen y dinero separados */
body.scwms-page .scwms-cancelled-table{min-width:1320px!important}
body.scwms-page .scwms-cancelled-table th:nth-child(1){width:16%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(2){width:11%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(3){width:6%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(4){width:13%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(5){width:25%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(6){width:10%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(7){width:10%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(8){width:9%!important}
body.scwms-page .scwms-cancelled-table td{vertical-align:top!important}
body.scwms-page .scwms-cancelled-table td:nth-child(5){white-space:normal!important}
body.scwms-page .scwms-cancelled-detail{display:grid!important;gap:5px!important;min-width:0!important}
body.scwms-page .scwms-cancelled-detail>b{font-size:12px!important;line-height:1.25!important;color:#1f2937!important;font-weight:900!important}
body.scwms-page .scwms-cancelled-detail>span{font-size:12.5px!important;line-height:1.38!important;color:#4f5968!important;font-weight:500!important}
body.scwms-page .scwms-cancelled-money{display:grid!important;gap:5px!important;justify-items:start!important}
body.scwms-page .scwms-cancelled-money small{max-width:150px!important;font-size:10.5px!important;line-height:1.3!important;color:#8a6a13!important}
body.scwms-page .scwms-cancelled-reputation{display:inline-flex!important;width:max-content!important;max-width:100%!important;padding:4px 7px!important;border-radius:6px!important;background:#f2f4f7!important;color:#667085!important;font-size:10.5px!important;line-height:1.1!important;font-weight:800!important}
body.scwms-page .scwms-cancelled-reputation.good{background:#eaf7ef!important;color:#087447!important}
body.scwms-page .scwms-cancelled-reputation.bad{background:#fff0f1!important;color:#b51629!important}
body.scwms-page .scwms-pill.neutral{background:#f1f3f6!important;border-color:#e2e6eb!important;color:#4f5a69!important}
body.scwms-page .scwms-cancelled-table .scwms-no-debe-salir,
body.scwms-page .scwms-cancelled-table td:last-child .scwms-pill.danger{font-weight:900!important;white-space:nowrap!important}
@media(max-width:820px){
  body.scwms-page .scwms-cancelled-table{min-width:1180px!important}
  body.scwms-page .scwms-cancelled-detail>span{font-size:12px!important}
}

/* v0.8.51 · Códigos de escaneo, Ubicaciones y tablas sin barra horizontal */
body.scwms-page .scwms-master-toolbar{margin-bottom:14px!important}
body.scwms-page .scwms-master-panel{padding:0!important;overflow:hidden!important}
body.scwms-page .scwms-fit-table-wrap{width:100%!important;max-width:100%!important;overflow-x:hidden!important;border:0!important;border-radius:14px!important}
body.scwms-page .scwms-master-table{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important}
body.scwms-page .scwms-master-table th{padding:13px 16px!important;font-size:10px!important;line-height:1.2!important;color:#7a8798!important;background:#fafbfc!important}
body.scwms-page .scwms-master-table td{padding:13px 16px!important;font-size:12.5px!important;line-height:1.35!important;vertical-align:middle!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.scwms-page .scwms-master-table th:nth-child(1){width:16%!important}
body.scwms-page .scwms-master-table th:nth-child(2){width:34%!important}
body.scwms-page .scwms-master-table th:nth-child(3){width:20%!important}
body.scwms-page .scwms-master-table th:nth-child(4){width:18%!important}
body.scwms-page .scwms-master-table th:nth-child(5){width:12%!important}
body.scwms-page .scwms-location-table th:nth-child(1){width:17%!important}
body.scwms-page .scwms-location-table th:nth-child(2){width:31%!important}
body.scwms-page .scwms-location-table th:nth-child(3){width:19%!important}
body.scwms-page .scwms-location-table th:nth-child(4){width:20%!important}
body.scwms-page .scwms-location-table th:nth-child(5){width:13%!important}
body.scwms-page .scwms-master-sku,
body.scwms-page .scwms-master-code,
body.scwms-page .scwms-primary-location{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace!important;font-weight:800!important;color:#101828!important}
body.scwms-page .scwms-master-code.is-empty,
body.scwms-page .scwms-master-empty{color:#667085!important;font-weight:600!important}
body.scwms-page .scwms-master-status{display:inline-flex!important;align-items:center!important;min-height:28px!important;padding:0 9px!important;border-radius:7px!important;font-size:11px!important;font-weight:900!important;white-space:nowrap!important}
body.scwms-page .scwms-master-status.is-ok{background:#e9f7ef!important;color:#087447!important}
body.scwms-page .scwms-master-status.is-missing{background:#fff0f1!important;color:#c1152a!important}
body.scwms-page .scwms-master-action{text-align:right!important}
body.scwms-page .scwms-copy-wide{appearance:none!important;min-width:90px!important;min-height:34px!important;padding:0 13px!important;border:1px solid #d8dee7!important;border-radius:9px!important;background:#fff!important;color:#344054!important;font:800 11px/1 'Inter',sans-serif!important;cursor:pointer!important}
body.scwms-page .scwms-copy-wide:hover{border-color:#bdc6d2!important;background:#f8fafc!important}
body.scwms-page .scwms-copy-wide.is-copied{border-color:#aad7bb!important;background:#eaf7ef!important;color:#087447!important}
body.scwms-page .scwms-copy-wide:disabled{cursor:default!important;opacity:.55!important}

/* Canceladas: entra completa en el ancho disponible, sin desplazamiento lateral. */
body.scwms-page .scwms-cancelled-panel .scwms-table-wrap{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
body.scwms-page .scwms-cancelled-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
body.scwms-page .scwms-cancelled-table th,
body.scwms-page .scwms-cancelled-table td{white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
body.scwms-page .scwms-cancelled-table th{padding-left:10px!important;padding-right:10px!important;font-size:9.5px!important;line-height:1.25!important}
body.scwms-page .scwms-cancelled-table td{padding-left:10px!important;padding-right:10px!important;font-size:11.5px!important;line-height:1.35!important}
body.scwms-page .scwms-cancelled-table th:nth-child(1){width:15%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(2){width:11%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(3){width:6%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(4){width:14%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(5){width:24%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(6){width:10%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(7){width:10%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(8){width:10%!important}
body.scwms-page .scwms-cancelled-table .scwms-pill{max-width:100%!important;height:auto!important;white-space:normal!important;text-align:center!important;justify-content:center!important}

@media(max-width:760px){
  body.scwms-page .scwms-master-panel{background:transparent!important;border:0!important;box-shadow:none!important}
  body.scwms-page .scwms-master-table,
  body.scwms-page .scwms-master-table tbody,
  body.scwms-page .scwms-master-table tr,
  body.scwms-page .scwms-master-table td{display:block!important;width:100%!important}
  body.scwms-page .scwms-master-table thead{display:none!important}
  body.scwms-page .scwms-master-table tr{margin-bottom:10px!important;padding:7px 12px!important;border:1px solid #e2e7ed!important;border-radius:12px!important;background:#fff!important}
  body.scwms-page .scwms-master-table td{display:grid!important;grid-template-columns:minmax(105px,38%) minmax(0,1fr)!important;gap:10px!important;padding:8px 0!important;border-bottom:1px solid #edf0f3!important;text-align:left!important}
  body.scwms-page .scwms-master-table td:last-child{border-bottom:0!important}
  body.scwms-page .scwms-master-table td::before{content:attr(data-label)!important;color:#7a8798!important;font-size:9px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.03em!important}
  body.scwms-page .scwms-master-table .scwms-master-action{display:block!important;text-align:left!important}
  body.scwms-page .scwms-master-table .scwms-master-action::before{display:none!important}
  body.scwms-page .scwms-copy-wide{width:100%!important}
}

/* v0.8.52 · Canceladas: encabezados y estados en una sola línea, sin scroll horizontal */
@media (min-width: 1061px){
  body.scwms-page .scwms-cancelled-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
  body.scwms-page .scwms-cancelled-table th{
    padding:13px 9px!important;
    font-size:10.5px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body.scwms-page .scwms-cancelled-table td{
    padding-left:9px!important;
    padding-right:9px!important;
    font-size:12px!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body.scwms-page .scwms-cancelled-table th:nth-child(1){width:15.5%!important}
  body.scwms-page .scwms-cancelled-table th:nth-child(2){width:11.5%!important}
  body.scwms-page .scwms-cancelled-table th:nth-child(3){width:7%!important}
  body.scwms-page .scwms-cancelled-table th:nth-child(4){width:14%!important}
  body.scwms-page .scwms-cancelled-table th:nth-child(5){width:23.5%!important}
  body.scwms-page .scwms-cancelled-table th:nth-child(6){width:10.5%!important}
  body.scwms-page .scwms-cancelled-table th:nth-child(7){width:9%!important}
  body.scwms-page .scwms-cancelled-table th:nth-child(8){width:9%!important}

  body.scwms-page .scwms-cancelled-table td:nth-child(2),
  body.scwms-page .scwms-cancelled-table td:nth-child(3){white-space:nowrap!important}
  body.scwms-page .scwms-cancelled-table td:nth-child(3),
  body.scwms-page .scwms-cancelled-table th:nth-child(3){text-align:center!important}

  body.scwms-page .scwms-cancelled-table td:nth-child(6),
  body.scwms-page .scwms-cancelled-table td:nth-child(7),
  body.scwms-page .scwms-cancelled-table td:nth-child(8){white-space:nowrap!important}
  body.scwms-page .scwms-cancelled-table td:nth-child(6) .scwms-pill,
  body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-pill,
  body.scwms-page .scwms-cancelled-table td:nth-child(8) .scwms-pill{
    display:inline-flex!important;
    width:auto!important;
    max-width:none!important;
    min-height:34px!important;
    height:34px!important;
    padding:0 10px!important;
    align-items:center!important;
    justify-content:center!important;
    white-space:nowrap!important;
    overflow:visible!important;
    line-height:1!important;
    font-size:11px!important;
  }
  body.scwms-page .scwms-cancelled-detail>b{white-space:nowrap!important}
  body.scwms-page .scwms-cancelled-reputation{white-space:nowrap!important}
}

/* En anchos más chicos priorizamos legibilidad sin volver a agregar barra lateral. */
@media (max-width:1060px){
  body.scwms-page .scwms-cancelled-table th{font-size:9px!important;line-height:1.15!important}
  body.scwms-page .scwms-cancelled-table td{font-size:11px!important}
}

/* v0.8.54 · Códigos manuales + sólo productos con stock físico en depósito */
body.scwms-page .scwms-scan-table th:nth-child(1){width:16%!important}
body.scwms-page .scwms-scan-table th:nth-child(2){width:32%!important}
body.scwms-page .scwms-scan-table th:nth-child(3){width:25%!important}
body.scwms-page .scwms-scan-table th:nth-child(4){width:12%!important}
body.scwms-page .scwms-scan-table th:nth-child(5){width:15%!important}
body.scwms-page .scwms-scan-code-input{
  width:100%!important;
  min-width:0!important;
  height:38px!important;
  padding:0 11px!important;
  border:1px solid #d8dee7!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#101828!important;
  font:800 12px/1 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace!important;
  text-transform:uppercase!important;
  outline:none!important;
  box-sizing:border-box!important;
}
body.scwms-page .scwms-scan-code-input::placeholder{color:#98a2b3!important;font-family:'Inter',sans-serif!important;font-weight:600!important;text-transform:none!important}
body.scwms-page .scwms-scan-code-input:focus{border-color:#607089!important;box-shadow:0 0 0 3px rgba(96,112,137,.10)!important}
body.scwms-page .scwms-scan-actions{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:7px!important;min-width:0!important}
body.scwms-page .scwms-scan-save{
  appearance:none!important;
  min-height:34px!important;
  padding:0 12px!important;
  border:1px solid #151b26!important;
  border-radius:9px!important;
  background:#151b26!important;
  color:#fff!important;
  font:800 11px/1 'Inter',sans-serif!important;
  cursor:pointer!important;
  white-space:nowrap!important;
}
body.scwms-page .scwms-scan-save:hover{background:#262f3d!important}
body.scwms-page .scwms-scan-save:disabled{opacity:.6!important;cursor:wait!important}
body.scwms-page .scwms-scan-actions .scwms-copy-wide{min-width:64px!important;padding:0 10px!important}
@media(max-width:760px){
  body.scwms-page .scwms-scan-actions{justify-content:stretch!important}
  body.scwms-page .scwms-scan-save,
  body.scwms-page .scwms-scan-actions .scwms-copy-wide{flex:1 1 0!important;width:auto!important}
}


/* v0.8.55 · Full fuera de Productos y Stock: sólo stock físico de Depósito */
body.scwms-page .scwms-products-table .scwms-stock-values,
body.scwms-page .scwms-stock-table .scwms-stock-values{
  display:block!important;
  max-width:150px!important;
}
body.scwms-page .scwms-products-table .scwms-stock-value,
body.scwms-page .scwms-stock-table .scwms-stock-value{
  width:100%!important;
  min-width:74px!important;
}
body.scwms-page .scwms-products-table .scwms-stock-head>span,
body.scwms-page .scwms-stock-table .scwms-stock-head>span{
  margin-bottom:0!important;
  white-space:nowrap!important;
}
body.scwms-page .scwms-products-table col.c-stock{width:9%!important}
body.scwms-page .scwms-stock-table col.c-stock{width:18%!important}


/* v0.8.56 · Productos: cuotas cerradas por defecto + encabezado STOCK */
body.scwms-page .scwms-products-table .scwms-stock-head>span,
body.scwms-page .scwms-stock-table .scwms-stock-head>span{
  white-space:nowrap!important;
}

/* ===== origen: wms-0858-refresh.css ===== */
/* v0.8.58 — refresh visual solicitado: sidebar oscuro colapsable,
   saludo superior, perfil más prolijo y look renovado para Estanterías
   y Diseño del depósito sin tocar la lógica existente. */

:root{
  --sc-bg:#F5F4F2;
  --sc-panel:#ffffff;
  --sc-panel-soft:#FBFBFC;
  --sc-text:#131722;
  --sc-muted:#718096;
  --sc-line:#E4E8EF;
  --sc-line-strong:#D8DEE7;
  --sc-sidebar:#111319;
  --sc-sidebar-soft:#171A22;
  --sc-sidebar-line:#2A303B;
  --sc-green:#1BA455;
  --sc-green-soft:#E7F7ED;
  --sc-yellow:#D9A12D;
  --sc-yellow-soft:#FFF3D7;
  --sc-red:#E11D3F;
  --sc-red-soft:#FDECEF;
  --sc-shadow-strong:0 18px 40px rgba(16,24,40,.08);
}

body.scwms-page{background:var(--sc-bg)!important;color:var(--sc-text)}
body.scwms-page .scwms-app{background:var(--sc-bg);min-height:100vh}

/* Sidebar */
body.scwms-page .scwms-sidebar{
  flex:0 0 312px!important;min-width:312px!important;width:312px!important;
  background:linear-gradient(180deg,#12141b 0%,#0f1117 100%)!important;
  border-right:1px solid rgba(255,255,255,.04)!important;
  padding:20px 18px 18px!important;color:#fff;box-shadow:none!important;
}
body.scwms-page .scwms-brand-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
body.scwms-page .scwms-brand{
  display:flex;align-items:center;gap:8px;padding:0 2px 0 0!important;
  color:#fff!important;font-size:17px!important;font-weight:800!important;letter-spacing:-.03em!important;
}
body.scwms-page .scwms-brand:before{display:none!important}
body.scwms-page .scwms-brand span{color:#fff!important;margin:0!important}
body.scwms-page .scwms-sidebar-toggle{
  width:34px;height:34px;border-radius:10px;border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.03);color:#E9EDF5;display:grid;place-items:center;cursor:pointer;
}
body.scwms-page .scwms-sidebar-toggle:hover{background:rgba(255,255,255,.08)}
body.scwms-page .scwms-sidebar-toggle .scwms-icon{width:18px;height:18px}
body.scwms-page .scwms-nav{padding-right:4px}
body.scwms-page .scwms-nav-group{display:grid;gap:6px}
body.scwms-page .scwms-nav-section{color:#7C8598!important;font-size:11px!important;letter-spacing:.18em!important;text-transform:uppercase!important;margin:20px 10px 10px!important}
body.scwms-page .scwms-nav-section::after{background:#262C38!important;opacity:1!important}
body.scwms-page .scwms-nav-item{
  min-height:52px;border:1px solid transparent!important;background:transparent!important;border-radius:18px!important;
  color:#ECEFF6!important;padding:0 16px!important;font-size:17px!important;font-weight:600!important;
  justify-content:flex-start!important;gap:14px!important;transition:all .2s ease;
}
body.scwms-page .scwms-nav-item .scwms-icon{width:22px;height:22px;color:#EDEFF4}
body.scwms-page .scwms-nav-item:hover{background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.04)!important;color:#fff!important}
body.scwms-page .scwms-nav-item.is-active{
  background:linear-gradient(90deg,rgba(255,255,255,.10) 0%,rgba(255,255,255,.05) 100%)!important;
  color:#fff!important;box-shadow:inset 4px 0 0 var(--sc-red);
}
body.scwms-page .scwms-sidebar-bottom{border-top:1px solid rgba(255,255,255,.08)!important;padding-top:16px!important;margin-top:18px!important}
body.scwms-page .scwms-user-card{
  min-height:78px!important;padding:14px 14px!important;border-radius:20px!important;
  grid-template-columns:52px 1fr auto!important;gap:12px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02))!important;
  border:1px solid rgba(255,255,255,.07)!important;color:#fff!important;
}
body.scwms-page .scwms-avatar{
  width:52px!important;height:52px!important;border-radius:50%!important;
  background:linear-gradient(135deg,#E11D3F,#7C3AED)!important;color:#fff!important;
  font-size:16px!important;font-weight:800!important;
  box-shadow:0 8px 20px rgba(0,0,0,.28);
}
body.scwms-page .scwms-user-card strong{font-size:16px!important;color:#fff!important;font-weight:700!important;line-height:1.05}
body.scwms-page .scwms-user-card small,
body.scwms-page .scwms-device-card small,
body.scwms-page .scwms-chevron{font-size:12px!important;color:#A8B1C2!important}
body.scwms-page .scwms-device-card{background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.06)!important;border-radius:16px!important}
body.scwms-page .scwms-device-card strong{color:#fff!important}

/* Sidebar collapsed desktop */
body.scwms-page .scwms-app.sidebar-collapsed .scwms-sidebar{flex-basis:92px!important;min-width:92px!important;width:92px!important;padding-left:12px!important;padding-right:12px!important}
body.scwms-page .scwms-app.sidebar-collapsed .scwms-brand{font-size:0!important}
body.scwms-page .scwms-app.sidebar-collapsed .scwms-brand span,
body.scwms-page .scwms-app.sidebar-collapsed .scwms-nav-item span,
body.scwms-page .scwms-app.sidebar-collapsed .scwms-nav-section,
body.scwms-page .scwms-app.sidebar-collapsed .scwms-user-card strong,
body.scwms-page .scwms-app.sidebar-collapsed .scwms-user-card small,
body.scwms-page .scwms-app.sidebar-collapsed .scwms-chevron,
body.scwms-page .scwms-app.sidebar-collapsed .scwms-device-card{display:none!important}
body.scwms-page .scwms-app.sidebar-collapsed .scwms-brand-row{justify-content:center}
body.scwms-page .scwms-app.sidebar-collapsed .scwms-sidebar-toggle{margin:0 auto}
body.scwms-page .scwms-app.sidebar-collapsed .scwms-nav-item{padding:0!important;justify-content:center!important}
body.scwms-page .scwms-app.sidebar-collapsed .scwms-nav-item .scwms-icon{margin:0!important}
body.scwms-page .scwms-app.sidebar-collapsed .scwms-user-card{grid-template-columns:1fr!important;justify-items:center!important;padding:12px 0!important;min-height:auto!important}

/* Main area and topbar */
body.scwms-page .scwms-main{min-width:0;background:var(--sc-bg)}
body.scwms-page .scwms-topbar{
  position:sticky!important;top:0!important;left:auto!important;right:auto!important;
  height:88px!important;padding:18px 24px!important;background:transparent!important;border:0!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;backdrop-filter:none!important;z-index:20!important;
}
body.scwms-page .scwms-topbar-greeting{display:flex;align-items:center;gap:12px;min-width:0}
body.scwms-page .scwms-greeting-sun{font-size:30px;line-height:1}
body.scwms-page .scwms-topbar-greeting strong{font-size:24px;line-height:1;font-weight:800;color:#1A2030;white-space:nowrap}
body.scwms-page .scwms-topbar-greeting em{font-style:normal;font-size:28px;line-height:1}
body.scwms-page .scwms-topbar-right{display:flex;align-items:center;gap:14px;min-width:0;justify-content:flex-end;flex:1}
body.scwms-page .scwms-topbar-search{
  width:min(520px,54vw)!important;height:58px!important;border-radius:16px!important;background:#fff!important;
  border:1px solid var(--sc-line)!important;box-shadow:var(--sc-shadow-strong);padding:0 18px!important;gap:12px!important;
}
body.scwms-page .scwms-search-icon{display:flex;align-items:center;color:#7C869A}
body.scwms-page .scwms-topbar-search input{font:600 16px 'Inter'!important;color:#243044!important}
body.scwms-page .scwms-topbar-search input::placeholder{color:#98A2B3}
body.scwms-page .scwms-top-actions{display:flex;align-items:center;gap:10px}
body.scwms-page .scwms-top-icon,
body.scwms-page .scwms-notification{
  width:50px!important;height:50px!important;border-radius:14px!important;background:#fff!important;
  border:1px solid var(--sc-line)!important;box-shadow:var(--sc-shadow-strong);display:grid;place-items:center;color:#283142;cursor:pointer;
}
body.scwms-page .scwms-top-icon .scwms-icon,
body.scwms-page .scwms-notification .scwms-icon{width:22px;height:22px}
body.scwms-page .scwms-notification b{right:7px!important;top:7px!important;min-width:18px!important;height:18px!important;font-size:10px!important;border-radius:999px!important;background:var(--sc-red)!important}
body.scwms-page .scwms-content{padding:6px 24px 36px!important}
body.scwms-page .scwms-panel,
body.scwms-page .scwms-home-panel,
body.scwms-page .scwms-design-library,
body.scwms-page .scwms-design-canvas,
body.scwms-page .scwms-properties{border:1px solid var(--sc-line)!important;border-radius:24px!important;box-shadow:var(--sc-shadow-strong)!important;background:var(--sc-panel)!important}
body.scwms-page .scwms-page-head{margin-bottom:14px;align-items:flex-start}
body.scwms-page .scwms-page-head h1{font-size:28px!important;line-height:1.04!important;letter-spacing:-.04em!important;margin-bottom:6px!important}
body.scwms-page .scwms-page-head p{font-size:17px!important;color:var(--sc-muted)!important;max-width:780px}
body.scwms-page .scwms-guide{display:none!important}
body.scwms-page .scwms-btn,
body.scwms-page .scwms-tool-action{border-radius:14px!important;font-size:15px!important;font-weight:700!important}
body.scwms-page .scwms-btn.full{height:54px}
body.scwms-page .scwms-btn.outline{background:#fff!important;border:1px solid var(--sc-line)!important;color:#384152!important}

/* Inicio */
body.scwms-page .scwms-home-heading h1{font-size:30px!important;line-height:1.04!important;letter-spacing:-.04em!important}
body.scwms-page .scwms-home-heading p{font-size:17px!important;color:var(--sc-muted)!important}
body.scwms-page .scwms-home-kpis{gap:16px!important}
body.scwms-page .scwms-home-kpi{border-radius:20px!important;padding:18px 20px!important;border:1px solid var(--sc-line)!important;box-shadow:var(--sc-shadow-strong)!important}
body.scwms-page .scwms-home-kpi div small{font-size:14px!important}
body.scwms-page .scwms-home-kpi div strong{font-size:30px!important}
body.scwms-page .scwms-home-kpi div em{font-size:13px!important}
body.scwms-page .scwms-home-main-grid{gap:16px!important}
body.scwms-page .scwms-home-panel header h2{font-size:16px!important}
body.scwms-page .scwms-home-panel header p{font-size:14px!important}
body.scwms-page .scwms-home-table th{font-size:12px!important;white-space:nowrap}
body.scwms-page .scwms-home-table td{font-size:15px!important}

/* Estanterías */
body.scwms-page .scwms-section[data-section="racks"] .scwms-kpi-grid{display:none!important}
body.scwms-page .scwms-section[data-section="racks"] .scwms-grid.main-two.scwms-space-top{display:none!important}
body.scwms-page .scwms-grid.racks-grid{grid-template-columns:minmax(0,1.65fr) 320px!important;align-items:start!important}
body.scwms-page .scwms-panel-head h3{font-size:18px!important;line-height:1.1!important}
body.scwms-page .scwms-panel-head p{font-size:14px!important;color:var(--sc-muted)!important}
body.scwms-page .scwms-legend{gap:18px!important;font-size:15px!important;color:#344054!important}
body.scwms-page .scwms-legend span{gap:8px!important;font-weight:600}
body.scwms-page .scwms-legend i{width:18px!important;height:18px!important;border-radius:6px!important;border:1px solid var(--sc-line-strong)!important}
body.scwms-page .scwms-rack-overview{display:grid!important;gap:22px!important;padding-top:14px}
body.scwms-page .scwms-sector-row{grid-template-columns:52px 1fr!important;gap:18px!important;padding:18px 0!important;border-top:1px solid #EEF1F5!important}
body.scwms-page .scwms-sector-label{width:52px;height:52px;border-radius:14px!important;background:#F1F4F8!important;color:#1F2840!important;font-size:28px!important;font-weight:800!important}
body.scwms-page .scwms-sector-racks{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
body.scwms-page .scwms-overview-rack{padding:0!important}
body.scwms-page .scwms-overview-rack strong{font-size:16px!important;margin-bottom:10px!important;color:#1F2743}
body.scwms-page .scwms-rack-cells{gap:5px!important;grid-template-columns:repeat(4,1fr)!important}
body.scwms-page .scwms-rack-cells i{height:24px!important;border-radius:5px!important;border:1px solid #D2D9E4!important}
body.scwms-page .scwms-rack-real-total strong{font-size:42px!important}
body.scwms-page .scwms-rack-real-total span{font-size:15px!important}
body.scwms-page .scwms-status-line{padding:11px 0!important;border-bottom:1px solid #EEF1F5!important}
body.scwms-page .scwms-status-line span,
body.scwms-page .scwms-status-line b{font-size:15px!important}
body.scwms-page .scwms-progress-row > div > span,
body.scwms-page .scwms-progress-row > div > b,
body.scwms-page .scwms-progress-row small{font-size:14px!important}

/* Diseño del depósito */
body.scwms-page .scwms-section[data-section="diseno-racks"] .scwms-actions{display:flex!important;gap:10px!important}
body.scwms-page .scwms-designer-toolbar{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  margin:0 0 14px!important;flex-wrap:wrap!important
}
body.scwms-page .scwms-history-actions,
body.scwms-page .scwms-zoom-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.scwms-page .scwms-canvas-help{display:flex;align-items:center;gap:10px;background:#FFF6E2;border:1px solid #F0D49A;color:#8A6214;padding:10px 14px;border-radius:14px}
body.scwms-page .scwms-canvas-help b{font-size:14px}
body.scwms-page .scwms-tool-btn{border-radius:12px!important;background:#fff!important;border:1px solid var(--sc-line)!important;padding:10px 14px!important;color:#2B3245!important;font-weight:700!important}
body.scwms-page .scwms-designer.scwms-designer-apb{grid-template-columns:280px minmax(0,1fr) 290px!important;gap:14px!important;min-height:700px!important}
body.scwms-page .scwms-design-library,
body.scwms-page .scwms-properties{padding:18px!important}
body.scwms-page .scwms-design-library h3,
body.scwms-page .scwms-properties h3{font-size:18px!important;line-height:1.05!important;margin-bottom:4px!important}
body.scwms-page .scwms-library-help{font-size:14px!important;color:var(--sc-muted)!important;margin:0 0 14px!important}
body.scwms-page .scwms-design-library button[draggable=true]{
  grid-template-columns:34px 1fr auto!important;gap:12px!important;padding:14px 14px!important;
  background:#FBFCFE!important;border:1px solid var(--sc-line)!important;border-radius:16px!important;margin-bottom:10px!important;color:#1F2940!important
}
body.scwms-page .scwms-design-library button[draggable=true] .scwms-icon{width:22px!important;height:22px!important;color:var(--sc-red)!important}
body.scwms-page .scwms-design-library button[draggable=true] b{font:800 15px 'Inter'!important}
body.scwms-page .scwms-design-library button[draggable=true] small{font:500 13px 'Inter'!important;color:var(--sc-muted)!important}
body.scwms-page .scwms-design-library button[draggable=true] em{font-style:normal;font-size:12px;font-weight:700;color:#7B8596}
body.scwms-page .scwms-library-tip{margin-top:8px;padding:14px;border-radius:16px;background:#FFF6E2;border:1px solid #F0D49A;font-size:14px;color:#8A6214}
body.scwms-page .scwms-canvas-toolbar{height:56px!important;padding:0 18px!important;font-size:15px!important}
body.scwms-page .scwms-canvas-toolbar b{font-size:16px!important}
body.scwms-page .scwms-design-viewport{padding:0!important}
body.scwms-page .scwms-design-grid{
  min-height:620px!important;padding:20px!important;background-size:18px 18px!important;
  background-image:radial-gradient(#D5DBE5 .8px,transparent .8px)!important
}
body.scwms-page .scwms-design-rack{border-radius:18px!important;border:1px solid #D8DEEA!important;padding:14px!important}
body.scwms-page .scwms-design-rack strong{font:800 18px 'Inter'!important;margin-bottom:3px!important;color:#1F2740}
body.scwms-page .scwms-design-rack > span{font:500 13px 'Inter'!important;color:var(--sc-muted)!important;line-height:1.2!important}
body.scwms-page .scwms-design-rack.is-selected{border:2px solid var(--sc-red)!important;box-shadow:0 0 0 4px var(--sc-red-soft)!important}
body.scwms-page .scwms-design-cells{gap:4px!important;margin-top:10px!important}
body.scwms-page .scwms-design-cells i{min-height:12px!important;border-radius:4px!important;background:#DFF3E6!important}
body.scwms-page .scwms-properties label{font-size:13px!important;color:#5B6678!important}
body.scwms-page .scwms-properties input,
body.scwms-page .scwms-properties select,
body.scwms-page .scwms-form input,
body.scwms-page .scwms-form select,
body.scwms-page .scwms-form textarea{padding:12px 14px!important;font:600 16px 'Inter'!important;border-radius:14px!important}
body.scwms-page .scwms-properties-actions{display:grid;grid-template-columns:1fr;gap:10px}
body.scwms-page .scwms-tool-action{min-height:48px!important}
body.scwms-page .scwms-tool-action.danger,
body.scwms-page .scwms-btn{background:var(--sc-red)!important;color:#fff!important;border:1px solid transparent!important}
body.scwms-page .scwms-tool-action:not(.danger){background:#fff!important;color:#364052!important;border:1px solid var(--sc-line)!important}
body.scwms-page .scwms-no-selection,
body.scwms-page .scwms-multi-selection{border-radius:18px!important;border:1px dashed #D7DEE9!important;background:#FAFBFD!important;padding:18px!important}

/* Responsive */
@media (max-width: 1280px){
  body.scwms-page .scwms-grid.racks-grid{grid-template-columns:1fr!important}
  body.scwms-page .scwms-designer.scwms-designer-apb{grid-template-columns:240px minmax(0,1fr)!important}
  body.scwms-page .scwms-properties{grid-column:1/-1!important}
}
@media (max-width: 930px){
  body.scwms-page .scwms-sidebar{position:fixed!important;inset:0 auto 0 0!important;transform:translateX(-100%)!important;transition:transform .2s ease!important;z-index:70!important;width:280px!important;min-width:280px!important}
  body.scwms-page .scwms-sidebar.is-open{transform:translateX(0)!important}
  body.scwms-page .scwms-topbar{height:auto!important;padding:12px 14px!important;gap:10px!important;align-items:flex-start!important;flex-wrap:wrap!important}
  body.scwms-page .scwms-menu-btn{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;border-radius:12px!important;border:1px solid var(--sc-line)!important;background:#fff!important;color:#1F2940!important}
  body.scwms-page .scwms-topbar-greeting strong{font-size:22px!important}
  body.scwms-page .scwms-topbar-right{width:100%!important;justify-content:space-between!important}
  body.scwms-page .scwms-topbar-search{width:100%!important;flex:1!important}
  body.scwms-page .scwms-content{padding:8px 14px 30px!important}
  body.scwms-page .scwms-sector-racks{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.scwms-page .scwms-designer.scwms-designer-apb{grid-template-columns:1fr!important}
}
@media (max-width: 620px){
  body.scwms-page .scwms-topbar-greeting strong{font-size:20px!important}
  body.scwms-page .scwms-greeting-sun,body.scwms-page .scwms-topbar-greeting em{font-size:24px!important}
  body.scwms-page .scwms-top-actions{gap:8px}
  body.scwms-page .scwms-top-icon,body.scwms-page .scwms-notification{width:44px!important;height:44px!important}
  body.scwms-page .scwms-home-main-grid,body.scwms-page .scwms-home-kpis{grid-template-columns:1fr!important}
  body.scwms-page .scwms-sector-row{grid-template-columns:1fr!important}
  body.scwms-page .scwms-sector-racks{grid-template-columns:1fr!important}
}

/* ===== origen: wms-0859-sidebar-fix.css ===== */
/* v0.8.59 — ajuste fino del sidebar */

body.scwms-page .scwms-main{
  flex:1 1 auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  position:relative!important;
}

@media (min-width: 931px){
  body.scwms-page .scwms-app{
    display:flex!important;
    align-items:stretch!important;
    width:100%!important;
    max-width:none!important;
    min-height:100vh!important;
  }

  body.scwms-page .scwms-sidebar{
    position:sticky!important;
    top:0!important;
    left:auto!important;
    right:auto!important;
    inset:auto!important;
    transform:none!important;
    flex:0 0 246px!important;
    min-width:246px!important;
    width:246px!important;
    height:100vh!important;
    z-index:30!important;
    overflow-y:auto!important;
    padding:16px 12px 14px!important;
  }

  body.scwms-page .scwms-topbar{
    padding-left:28px!important;
    padding-right:24px!important;
  }

  body.scwms-page .scwms-app.sidebar-collapsed .scwms-sidebar{
    flex:0 0 74px!important;
    min-width:74px!important;
    width:74px!important;
    padding:14px 8px 12px!important;
  }

  body.scwms-page .scwms-app.sidebar-collapsed .scwms-main{
    width:auto!important;
    max-width:none!important;
    flex:1 1 auto!important;
  }

  body.scwms-page .scwms-app.sidebar-collapsed .scwms-sidebar-bottom{
    display:none!important;
  }

  body.scwms-page .scwms-app.sidebar-collapsed .scwms-nav{
    padding-right:0!important;
  }

  body.scwms-page .scwms-app.sidebar-collapsed .scwms-nav-item{
    padding:0!important;
    justify-content:center!important;
    min-height:44px!important;
    height:44px!important;
    border-radius:14px!important;
  }

  body.scwms-page .scwms-app.sidebar-collapsed .scwms-nav-item .scwms-icon{
    margin:0!important;
  }

  body.scwms-page .scwms-app.sidebar-collapsed .scwms-nav-item span,
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-nav-section,
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-brand,
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-mobile-close{
    display:none!important;
  }

  body.scwms-page .scwms-app.sidebar-collapsed .scwms-brand-row{
    justify-content:center!important;
    margin-bottom:10px!important;
  }
}

body.scwms-page .scwms-brand-row{
  margin-bottom:8px!important;
}

body.scwms-page .scwms-brand{
  font-size:13px!important;
  gap:6px!important;
  letter-spacing:-.01em!important;
}

body.scwms-page .scwms-brand span{
  font-size:13px!important;
}

body.scwms-page .scwms-sidebar-toggle{
  width:32px!important;
  height:32px!important;
  border-radius:10px!important;
  flex:0 0 32px!important;
}

body.scwms-page .scwms-sidebar .scwms-nav-section{
  margin:16px 10px 8px!important;
  font-size:10px!important;
}

body.scwms-page .scwms-sidebar .scwms-nav-item{
  min-height:46px!important;
  height:auto!important;
  padding:0 14px!important;
  gap:12px!important;
  border-radius:16px!important;
  font-size:14px!important;
}

body.scwms-page .scwms-sidebar .scwms-nav-item .scwms-icon{
  width:20px!important;
  height:20px!important;
}

body.scwms-page .scwms-sidebar-bottom{
  margin-top:12px!important;
  padding-top:12px!important;
}

body.scwms-page .scwms-user-card{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  align-items:center!important;
  gap:10px!important;
  padding:10px 12px!important;
  min-height:auto!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.025)!important;
  border:1px solid rgba(255,255,255,.06)!important;
  box-shadow:none!important;
}

body.scwms-page .scwms-user-card .scwms-avatar{
  display:none!important;
}

body.scwms-page .scwms-user-card strong{
  font-size:14px!important;
  line-height:1.05!important;
}

body.scwms-page .scwms-user-card small{
  font-size:11px!important;
  color:#97A1B3!important;
  margin-top:3px!important;
}

body.scwms-page .scwms-chevron{
  color:#97A1B3!important;
  font-size:12px!important;
}

@media (max-width: 930px){
  body.scwms-page .scwms-sidebar{
    position:fixed!important;
    inset:0 auto 0 0!important;
    transform:translateX(-100%)!important;
    width:264px!important;
    min-width:264px!important;
    z-index:70!important;
  }
  body.scwms-page .scwms-sidebar.is-open{transform:translateX(0)!important}
}

/* ===== origen: wms-0860-layout-fix.css ===== */
/* v0.8.60 — arreglo de sidebar fijo, cabecera limpia y tabla canceladas */

body.scwms-page .scwms-app{
  display:flex!important;
  align-items:stretch!important;
  width:100%!important;
  min-height:100vh!important;
}

/* Sidebar fijo en escritorio */
@media (min-width: 931px){
  body.scwms-page .scwms-sidebar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    bottom:0!important;
    height:100vh!important;
    width:232px!important;
    min-width:232px!important;
    flex:0 0 232px!important;
    z-index:60!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    padding:14px 10px 12px!important;
  }

  body.scwms-page .scwms-nav{
    flex:1 1 auto!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-right:3px!important;
  }

  body.scwms-page .scwms-sidebar-bottom{
    flex:0 0 auto!important;
    margin-top:10px!important;
    background:transparent!important;
  }

  body.scwms-page .scwms-main{
    margin-left:232px!important;
    width:calc(100% - 232px)!important;
    max-width:none!important;
    flex:1 1 auto!important;
  }

  body.scwms-page .scwms-app.sidebar-collapsed .scwms-sidebar{
    width:72px!important;
    min-width:72px!important;
    flex-basis:72px!important;
    padding:12px 8px!important;
  }

  body.scwms-page .scwms-app.sidebar-collapsed .scwms-main{
    margin-left:72px!important;
    width:calc(100% - 72px)!important;
  }

  body.scwms-page .scwms-app.sidebar-collapsed .scwms-nav{padding-right:0!important}
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-sidebar-bottom{display:none!important}
}

body.scwms-page .scwms-sidebar .scwms-nav-item{font-size:13px!important;min-height:44px!important;padding:0 12px!important}
body.scwms-page .scwms-sidebar .scwms-nav-item .scwms-icon{width:19px!important;height:19px!important}
body.scwms-page .scwms-brand{font-size:12px!important;gap:5px!important}
body.scwms-page .scwms-brand span{font-size:12px!important}
body.scwms-page .scwms-nav-section{font-size:10px!important;margin:14px 10px 8px!important}

/* Recuadro de usuario más simple */
body.scwms-page .scwms-user-card{
  background:rgba(255,255,255,.018)!important;
  border:1px solid rgba(255,255,255,.05)!important;
  border-radius:12px!important;
  padding:10px 12px!important;
  grid-template-columns:1fr auto!important;
  box-shadow:none!important;
}
body.scwms-page .scwms-user-card strong{font-size:13px!important;font-weight:700!important}
body.scwms-page .scwms-user-card small{font-size:11px!important;color:#9AA4B4!important}

/* Cabecera superior: dejar solo saludo, sacar botones que no se usan */
body.scwms-page .scwms-topbar{
  justify-content:flex-start!important;
  padding:18px 28px 8px!important;
  gap:12px!important;
}
body.scwms-page .scwms-topbar-right{display:none!important}
body.scwms-page .scwms-topbar-greeting{padding-left:0!important;margin-left:0!important}
body.scwms-page .scwms-home-heading h1,
body.scwms-page .scwms-page-head h1{scroll-margin-top:96px}
body.scwms-page .scwms-content{padding-top:0!important}

/* Canceladas: corregir NO DEBE SALIR */
body.scwms-page .scwms-cancelled-table th,
body.scwms-page .scwms-cancelled-table td{vertical-align:top!important}
body.scwms-page .scwms-cancelled-table th:last-child,
body.scwms-page .scwms-cancelled-table td:last-child{width:170px!important;min-width:170px!important}
body.scwms-page .scwms-cancelled-table .scwms-no-debe-salir,
body.scwms-page .scwms-cancelled-table .scwms-pill.danger{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:138px!important;
  white-space:nowrap!important;
  text-align:center!important;
}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-pill{white-space:nowrap!important}

/* Móvil */
@media (max-width: 930px){
  body.scwms-page .scwms-sidebar{
    position:fixed!important;
    left:0!important;
    top:0!important;
    bottom:0!important;
    width:264px!important;
    min-width:264px!important;
    margin-left:0!important;
  }
  body.scwms-page .scwms-main{
    margin-left:0!important;
    width:100%!important;
  }
  body.scwms-page .scwms-topbar{padding:14px 16px 6px!important}
}

/* ===== origen: wms-0861-polish.css ===== */
/* v0.8.61 — ajuste fino visual */

@media (min-width: 931px){
  body.scwms-page .scwms-sidebar{
    width:214px!important;
    min-width:214px!important;
    flex-basis:214px!important;
    padding:14px 10px 10px!important;
  }

  body.scwms-page .scwms-main{
    margin-left:214px!important;
    width:calc(100% - 214px)!important;
  }

  body.scwms-page .scwms-app.sidebar-collapsed .scwms-sidebar{
    width:66px!important;
    min-width:66px!important;
    flex-basis:66px!important;
    padding:12px 7px!important;
  }

  body.scwms-page .scwms-app.sidebar-collapsed .scwms-main{
    margin-left:66px!important;
    width:calc(100% - 66px)!important;
  }
}

body.scwms-page .scwms-brand-row{
  margin-bottom:8px!important;
}

body.scwms-page .scwms-brand{
  font-size:11px!important;
  gap:4px!important;
}

body.scwms-page .scwms-brand span{
  font-size:11px!important;
  letter-spacing:0!important;
}

body.scwms-page .scwms-sidebar-toggle{
  width:30px!important;
  height:30px!important;
  border-radius:10px!important;
}

body.scwms-page .scwms-sidebar .scwms-nav-item{
  min-height:42px!important;
  padding:0 12px!important;
  border-radius:15px!important;
}

body.scwms-page .scwms-sidebar .scwms-nav-item span{
  font-size:12.5px!important;
}

body.scwms-page .scwms-sidebar .scwms-nav-item .scwms-icon{
  width:18px!important;
  height:18px!important;
}

body.scwms-page .scwms-sidebar-bottom{
  padding-top:10px!important;
}

body.scwms-page .scwms-user-card{
  background:transparent!important;
  border:1px solid rgba(255,255,255,.05)!important;
  border-radius:12px!important;
  padding:10px 12px!important;
  min-height:auto!important;
}

body.scwms-page .scwms-user-meta{
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
}

body.scwms-page .scwms-user-card strong{
  font-size:13px!important;
  line-height:1.1!important;
}

body.scwms-page .scwms-user-card small{
  font-size:11px!important;
  line-height:1.1!important;
  color:#98A3B7!important;
}

body.scwms-page .scwms-topbar{
  min-height:74px!important;
}

body.scwms-page .scwms-topbar-greeting{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}

body.scwms-page .scwms-topbar-greeting strong{
  font-size:22px!important;
}

body.scwms-page .scwms-greeting-sun,
body.scwms-page .scwms-topbar-greeting em{
  font-style:normal!important;
  font-size:20px!important;
  line-height:1!important;
}

body.scwms-page .scwms-topbar-greeting[hidden]{
  display:none!important;
}

/* v0.8.64 — marca sidebar mismo tamaño */
body.scwms-page .scwms-brand,
body.scwms-page .scwms-brand span{
  font-size:11px!important;
  font-weight:800!important;
  line-height:1!important;
  letter-spacing:0!important;
}


/* v0.8.65 — cancelar solapes y ocultar modos aparte */
body.scwms-page .scwms-cancelled-table th:nth-child(6),
body.scwms-page .scwms-cancelled-table td:nth-child(6){
  width:13.5%!important;
  min-width:160px!important;
}
body.scwms-page .scwms-cancelled-table th:nth-child(7),
body.scwms-page .scwms-cancelled-table td:nth-child(7){
  width:10%!important;
  min-width:120px!important;
}
body.scwms-page .scwms-cancelled-table th:nth-child(8),
body.scwms-page .scwms-cancelled-table td:nth-child(8){
  width:11%!important;
  min-width:150px!important;
}
body.scwms-page .scwms-cancelled-table td:nth-child(6) .scwms-pill,
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-pill,
body.scwms-page .scwms-cancelled-table td:nth-child(8) .scwms-pill{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  white-space:nowrap!important;
}
body.scwms-page .scwms-cancelled-table .scwms-cancelled-money{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:6px!important;
}


/* v0.8.66 — stock alineado al centro como ubicación */
body.scwms-page .scwms-products-table tbody td.scwms-stock-cell,
body.scwms-page .scwms-stock-table tbody td.scwms-stock-cell{
  vertical-align:middle!important;
}
body.scwms-page .scwms-products-table td.scwms-stock-cell .scwms-stock-values,
body.scwms-page .scwms-stock-table td.scwms-stock-cell .scwms-stock-values{
  justify-content:center!important;
  align-items:center!important;
}
body.scwms-page .scwms-products-table th.scwms-stock-head,
body.scwms-page .scwms-stock-table th.scwms-stock-head{
  text-align:center!important;
  vertical-align:middle!important;
}
body.scwms-page .scwms-products-table th.scwms-stock-head > span,
body.scwms-page .scwms-stock-table th.scwms-stock-head > span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:24px!important;
  margin:0!important;
}

/* v0.8.68 — fondo del bloque Allison uniforme */
body.scwms-page .scwms-sidebar{
  overflow:hidden!important;
}
body.scwms-page .scwms-sidebar-bottom{
  border-top:1px solid rgba(255,255,255,.06)!important;
  padding-top:12px!important;
  margin-top:10px!important;
}
body.scwms-page .scwms-user-card{
  background:rgba(255,255,255,.025)!important;
  border:1px solid rgba(255,255,255,.07)!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body.scwms-page .scwms-user-card::before,
body.scwms-page .scwms-user-card::after,
body.scwms-page .scwms-sidebar-bottom::before,
body.scwms-page .scwms-sidebar-bottom::after{
  display:none!important;
  content:none!important;
}

/* ===== origen: wms-0862-fix.css ===== */
/* v0.8.62 — alineación de stock + etiqueta logística + saludo sólo en Inicio */

/* El saludo superior existe únicamente en Inicio. En el resto no dejamos una franja vacía. */
body.scwms-page .scwms-app:not(.is-home-view) .scwms-topbar{
  display:none!important;
}
body.scwms-page .scwms-app.is-home-view .scwms-topbar{
  display:flex!important;
}
body.scwms-page .scwms-topbar-greeting[hidden]{
  display:none!important;
}

/* Productos: stock centrado verticalmente como Ubicación y Código. */
body.scwms-page .scwms-products-table td.scwms-stock-cell,
body.scwms-page .scwms-stock-table td.scwms-stock-cell{
  vertical-align:middle!important;
}
body.scwms-page .scwms-products-table .scwms-stock-values,
body.scwms-page .scwms-stock-table .scwms-stock-values{
  align-items:center!important;
  justify-content:center!important;
  align-content:center!important;
  margin-top:0!important;
  margin-bottom:0!important;
}
body.scwms-page .scwms-products-table .scwms-stock-value,
body.scwms-page .scwms-stock-table .scwms-stock-value{
  margin-top:0!important;
  margin-bottom:0!important;
}

@media (max-width:930px){
  body.scwms-page .scwms-products-table td.scwms-stock-cell,
  body.scwms-page .scwms-stock-table td.scwms-stock-cell{
    vertical-align:initial!important;
  }
}

/* ===== origen: wms-0867-fix.css ===== */
/* v0.8.67 — asignación de ubicaciones + margen superior uniforme */

/* En todas las solapas salvo Inicio, el título necesita aire arriba aunque el saludo esté oculto. */
body.scwms-page .scwms-app:not(.is-home-view) .scwms-content{
  padding-top:28px!important;
}
body.scwms-page .scwms-app:not(.is-home-view) .scwms-page-head{
  margin-top:0!important;
}

/* Ubicaciones ahora es una pantalla accionable, no solo lectura. */
body.scwms-page .scwms-location-table td:nth-child(3),
body.scwms-page .scwms-location-table td:nth-child(5){
  vertical-align:middle!important;
}
body.scwms-page .scwms-location-assign{
  appearance:none;
  border:0;
  font:inherit;
  cursor:pointer;
}
body.scwms-page button.scwms-primary-location{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 12px;
  border-radius:10px;
  background:#EEF5FF;
  border:1px solid #CADCFB;
  color:#174A8B;
  font-weight:800;
}
body.scwms-page .scwms-location-empty-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 12px;
  border-radius:10px;
  background:#FFF7E8;
  border:1px solid #F1D49A;
  color:#8A5B00;
  font-weight:800;
}
body.scwms-page .scwms-location-table button.scwms-master-status{
  min-height:36px!important;
  padding:8px 12px!important;
  border-radius:10px!important;
}
body.scwms-page .scwms-location-assign:hover{
  filter:brightness(.98);
  transform:translateY(-1px);
}

/* Modal de asignación */
body.scwms-page .scwms-location-modal-card{
  width:min(560px,100%)!important;
  padding:26px!important;
}
body.scwms-page .scwms-location-modal-eyebrow{
  display:block;
  color:#7A8496;
  font-size:11px!important;
  font-weight:800;
  letter-spacing:.08em;
  margin-bottom:7px;
}
body.scwms-page .scwms-location-modal-card h2{
  margin:0 0 7px!important;
  font-size:24px!important;
}
body.scwms-page .scwms-location-modal-card>p{
  margin:0 0 20px!important;
  font-size:14px!important;
  color:#687386!important;
}
body.scwms-page .scwms-location-modal-label{
  display:grid;
  gap:8px;
  color:#2E3748;
  font-size:13px;
  font-weight:800;
}
body.scwms-page .scwms-location-modal-label select{
  width:100%;
  min-height:48px;
  border:1px solid #D8DEE8;
  border-radius:12px;
  background:#fff;
  padding:0 13px;
  font:600 15px 'Inter',Arial,sans-serif;
  color:#1E2737;
}
body.scwms-page .scwms-location-modal-help{
  margin:10px 0 18px!important;
  font-size:12px!important;
  line-height:1.45!important;
  color:#7A8496!important;
}
body.scwms-page .scwms-location-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
body.scwms-page .scwms-location-no-layout{
  display:grid;
  gap:10px;
  padding:18px;
  border-radius:14px;
  border:1px solid #F1D49A;
  background:#FFF8EA;
}
body.scwms-page .scwms-location-no-layout[hidden]{display:none!important}
body.scwms-page .scwms-location-no-layout b{font-size:15px;color:#654600}
body.scwms-page .scwms-location-no-layout span{font-size:13px;line-height:1.45;color:#7B6540}
body.scwms-page .scwms-location-no-layout .scwms-btn{justify-self:start;margin-top:4px}

@media(max-width:930px){
  body.scwms-page .scwms-app:not(.is-home-view) .scwms-content{padding-top:18px!important}
  body.scwms-page .scwms-location-modal-actions{flex-direction:column-reverse}
  body.scwms-page .scwms-location-modal-actions .scwms-btn{width:100%}
}

/* v0.8.69 · apartado Demorados */
body.scwms-page .scwms-home-late{
  width:100%;
  appearance:none;
  text-align:left;
  cursor:pointer;
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  font-family:'Inter',Arial,sans-serif;
}
body.scwms-page .scwms-home-late[hidden]{display:none!important}
body.scwms-page .scwms-home-late>span{min-width:0;display:block}
body.scwms-page .scwms-home-late em{
  flex:0 0 auto;
  font-style:normal;
  font-size:12px;
  font-weight:800;
  color:#b01325;
  white-space:nowrap;
}
body.scwms-page .scwms-home-late:hover{background:#ffedef!important}
body.scwms-page .scwms-home-late:focus-visible{outline:2px solid #d9233f;outline-offset:2px}

body.scwms-page .scwms-delayed-toolbar{margin-bottom:14px!important}
body.scwms-page .scwms-delayed-source{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 13px;
  border-radius:999px;
  border:1px solid #efc1c6;
  background:#fff1f2;
  color:#b01325;
  font-size:12px;
  font-weight:800;
}
body.scwms-page .scwms-delayed-info{
  display:flex;
  align-items:flex-start;
  gap:18px;
  margin:0 0 16px;
  padding:14px 16px;
  border:1px solid #efc1c6;
  border-radius:13px;
  background:#fff6f7;
}
body.scwms-page .scwms-delayed-info b{flex:0 0 auto;color:#a91022;font-size:13px}
body.scwms-page .scwms-delayed-info span{color:#6e5660;font-size:13px;line-height:1.45}
body.scwms-page .scwms-delayed-table{width:100%!important;table-layout:fixed!important}
body.scwms-page .scwms-delayed-table th:nth-child(1){width:14%}
body.scwms-page .scwms-delayed-table th:nth-child(2){width:15%}
body.scwms-page .scwms-delayed-table th:nth-child(3){width:14%}
body.scwms-page .scwms-delayed-table th:nth-child(4){width:11%}
body.scwms-page .scwms-delayed-table th:nth-child(5){width:14%}
body.scwms-page .scwms-delayed-table th:nth-child(6){width:11%}
body.scwms-page .scwms-delayed-table th:nth-child(7){width:21%}
body.scwms-page .scwms-delayed-table th,
body.scwms-page .scwms-delayed-table td{vertical-align:middle!important}
body.scwms-page .scwms-delayed-table td{white-space:normal!important}
body.scwms-page .scwms-delayed-due{color:#b01325;font-weight:800}

@media(max-width:930px){
  body.scwms-page .scwms-home-late{align-items:flex-start;flex-direction:column;gap:8px}
  body.scwms-page .scwms-delayed-info{flex-direction:column;gap:5px}
  body.scwms-page .scwms-delayed-table{min-width:980px!important}
}

/* ===== origen: wms-0872-ops-refresh.css ===== */
/* =============================================================
   Smartclick WMS v0.8.72 · Operación más visual, mismos colores
   ============================================================= */

/* HOY ---------------------------------------------------------- */
.scwms-home-today .scwms-home-heading{margin-bottom:18px}
.scwms-home-today .scwms-home-heading h1{font-size:31px;letter-spacing:-.05em}
.scwms-live-badge{display:inline-flex;align-items:center;gap:7px;border:1px solid #dfe3e8;background:#fff;border-radius:999px;padding:7px 10px;color:#5c6572;font-size:8px;font-weight:800;letter-spacing:.04em;white-space:nowrap}
.scwms-live-badge i{width:7px;height:7px;border-radius:50%;background:var(--sc-green);box-shadow:0 0 0 4px var(--sc-green-soft)}
.scwms-today-urgent{width:100%;border:1px solid var(--sc-red-border);background:linear-gradient(90deg,var(--sc-red-soft),#fff);border-radius:15px;padding:13px 15px;margin:-2px 0 16px;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:11px;text-align:left;color:var(--sc-text);cursor:pointer}
.scwms-today-urgent[hidden]{display:none!important}.scwms-today-urgent-icon{width:36px;height:36px;border-radius:11px;background:var(--sc-red);color:#fff;display:grid;place-items:center}.scwms-today-urgent-icon .scwms-icon{width:18px;height:18px}.scwms-today-urgent b,.scwms-today-urgent small{display:block}.scwms-today-urgent b{font-size:12px}.scwms-today-urgent small{font-size:8px;color:#6b5558;margin-top:2px}.scwms-today-urgent em{font-style:normal;font-size:9px;font-weight:800;color:var(--sc-red)}
.scwms-home-kpis-today{grid-template-columns:repeat(4,minmax(0,1fr))}
.scwms-home-kpi.is-ready .scwms-home-kpi-icon{background:var(--sc-amber-soft);color:var(--sc-amber)}
.scwms-home-kpi.is-done .scwms-home-kpi-icon{background:var(--sc-green-soft);color:var(--sc-green)}
.scwms-home-worker{transition:border-color .18s,background .18s}

/* VENTAS ------------------------------------------------------- */
.scwms-sales-kpis{grid-template-columns:repeat(3,minmax(0,1fr));max-width:900px}
.scwms-local-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px}.scwms-view-chips{display:flex;gap:6px;flex-wrap:wrap}.scwms-view-chips button{appearance:none;border:1px solid var(--sc-border);background:#fff;color:#687180;border-radius:999px;padding:8px 13px;font:700 9px 'Inter',sans-serif;cursor:pointer;transition:.15s}.scwms-view-chips button:hover{border-color:var(--sc-red-border);color:var(--sc-red)}.scwms-view-chips button.is-active{background:var(--sc-red);border-color:var(--sc-red);color:#fff}.scwms-local-search{margin-left:auto;min-width:min(330px,100%);height:39px;border:1px solid var(--sc-border);background:#fff;border-radius:11px;padding:0 11px;display:flex;align-items:center;gap:8px}.scwms-local-search .scwms-icon{width:16px;height:16px;color:#7a8390}.scwms-local-search input{border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;width:100%;font:500 10px 'Inter',sans-serif;color:var(--sc-text)}.scwms-auto-sync-state{font-size:8px;font-weight:700;color:var(--sc-green);background:var(--sc-green-soft);border-radius:999px;padding:7px 9px;white-space:nowrap}.scwms-live-sales-panel tbody tr.is-new-sale{animation:scwmsNewSale 4.5s ease forwards;box-shadow:inset 4px 0 0 var(--sc-red)}@keyframes scwmsNewSale{0%,55%{background:var(--sc-red-soft)}100%{background:#fff;box-shadow:inset 0 0 0 transparent}}

/* PEDIDOS · TABLERO ------------------------------------------- */
.scwms-orders-toolbar{align-items:center}.scwms-orders-board,.scwms-orders-kanban{display:grid;grid-template-columns:repeat(5,minmax(155px,1fr));gap:11px;overflow-x:auto;padding-bottom:5px}.scwms-kanban-col{background:#f7f8fa;border:1px solid var(--sc-border);border-radius:14px;padding:10px;min-height:220px;border-top:3px solid #9ca5b2}.scwms-kanban-col.is-new{border-top-color:var(--sc-blue)}.scwms-kanban-col.is-picking{border-top-color:var(--sc-amber)}.scwms-kanban-col.is-packing{border-top-color:var(--sc-red)}.scwms-kanban-col.is-ready{border-top-color:var(--sc-green)}.scwms-kanban-col.is-late{border-top-color:var(--sc-red-dark)}.scwms-kanban-col>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;padding:0 2px}.scwms-kanban-col>header span{font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#69727f}.scwms-kanban-col>header b{min-width:22px;height:22px;padding:0 6px;border-radius:999px;display:grid;place-items:center;background:#fff;border:1px solid #e1e4e8;font-size:9px}.scwms-kanban-list{min-height:160px;border-radius:10px;transition:.15s}.scwms-kanban-list.is-drop-target{background:var(--sc-red-soft);outline:2px dashed var(--sc-red-border);outline-offset:2px}.scwms-kanban-card{background:#fff;border:1px solid #dfe3e8;border-radius:11px;padding:10px;margin-bottom:7px;box-shadow:0 5px 14px rgba(20,26,36,.035);cursor:default}.scwms-kanban-card[draggable=true]{cursor:grab}.scwms-kanban-card.is-dragging{opacity:.45}.scwms-kanban-card>div{display:flex;justify-content:space-between;gap:6px;align-items:center}.scwms-kanban-card b{font-size:10px}.scwms-kanban-card span{font-size:7px;border-radius:999px;background:#f0f2f4;color:#65707e;padding:3px 6px;font-weight:700}.scwms-kanban-card small{display:block;color:#77808d;font-size:7.5px;margin-top:5px}.scwms-kanban-card em{display:block;margin-top:6px;color:var(--sc-red);font-size:7px;font-style:normal;font-weight:800}.scwms-kanban-empty{padding:30px 6px;text-align:center;color:#9aa2ad;font-size:8px}.scwms-board-note,.scwms-orders-board-note{margin:0 0 10px;color:var(--sc-muted);font-size:8px}.scwms-board-note b,.scwms-orders-board-note b{display:block;color:var(--sc-text);font-size:9px}.scwms-orders-board-note span{display:block;color:var(--sc-muted);font-size:8px;margin-top:2px}

/* PREPARACIÓN / EMPAQUE · SUPERVISIÓN ------------------------- */
.scwms-ops-supervisor-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.scwms-ops-live-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.scwms-ops-empty{grid-column:1/-1;border:1px dashed var(--sc-border);border-radius:13px;padding:30px;text-align:center}.scwms-ops-empty b,.scwms-ops-empty span{display:block}.scwms-ops-empty b{font-size:10px}.scwms-ops-empty span{margin-top:4px;color:var(--sc-muted);font-size:8px}.scwms-ops-worker-card{border:1px solid var(--sc-border);border-left:4px solid var(--sc-green);background:#fff;border-radius:13px;padding:13px;box-shadow:0 6px 18px rgba(20,26,36,.035)}.scwms-ops-worker-head{display:grid;grid-template-columns:34px 1fr auto;gap:9px;align-items:center}.scwms-ops-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#20232a;color:#fff;font-size:9px;font-weight:800}.scwms-ops-worker-head b,.scwms-ops-worker-head small{display:block}.scwms-ops-worker-head b{font-size:10px}.scwms-ops-worker-head small{color:var(--sc-muted);font-size:7px;margin-top:1px}.scwms-ops-worker-head em{font-style:normal;border-radius:999px;padding:4px 7px;background:var(--sc-green-soft);color:var(--sc-green);font-size:7px;font-weight:800;white-space:nowrap}.scwms-ops-task{font-size:8px;color:#6a7380;margin:11px 0 7px}.scwms-ops-task b{color:#20242d}.scwms-ops-progress{height:5px;border-radius:999px;background:#eef0f2;overflow:hidden}.scwms-ops-progress i{display:block;height:100%;background:var(--sc-green);border-radius:inherit}.scwms-supervisor-explain{display:grid;gap:9px}.scwms-supervisor-explain>div{display:grid;grid-template-columns:28px 1fr;gap:9px;align-items:center}.scwms-supervisor-explain>div>span{width:26px;height:26px;border-radius:9px;display:grid;place-items:center;font-size:10px;font-weight:900}.scwms-supervisor-explain .is-good{background:var(--sc-green-soft);color:var(--sc-green)}.scwms-supervisor-explain .is-warn{background:var(--sc-amber-soft);color:#765000}.scwms-supervisor-explain .is-bad{background:var(--sc-red-soft);color:var(--sc-red)}.scwms-supervisor-explain p{margin:0}.scwms-supervisor-explain b,.scwms-supervisor-explain small{display:block}.scwms-supervisor-explain b{font-size:9px}.scwms-supervisor-explain small{color:var(--sc-muted);font-size:7px;margin-top:2px}.scwms-route-explain{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.scwms-route-explain>div{background:#f8f9fa;border:1px solid #eaedf0;border-radius:11px;padding:10px}.scwms-route-explain span{width:23px;height:23px;border-radius:8px;display:grid;place-items:center;background:var(--sc-red-soft);color:var(--sc-red);font-size:8px;font-weight:900;margin-bottom:7px}.scwms-route-explain b,.scwms-route-explain small{display:block}.scwms-route-explain b{font-size:8px}.scwms-route-explain small{font-size:7px;color:var(--sc-muted);margin-top:2px}

/* DESPACHO · CORTES ------------------------------------------- */
.scwms-dispatch-day-kpis-v2{grid-template-columns:repeat(5,minmax(0,1fr))}.scwms-cutoff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.scwms-cutoff-card{background:#fff;border:1px solid var(--sc-border);border-radius:18px;padding:19px;box-shadow:var(--sc-shadow);transition:background .2s,border-color .2s,box-shadow .2s}.scwms-cutoff-card>header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.scwms-cutoff-name{display:flex;gap:10px;align-items:center}.scwms-channel-mark{width:35px;height:35px;border-radius:11px;display:grid;place-items:center;font-size:10px;font-weight:900}.scwms-channel-mark.flex{background:var(--sc-red-soft);color:var(--sc-red)}.scwms-channel-mark.colecta{background:#f0f2f4;color:#323943}.scwms-cutoff-name h3{margin:0;font-size:14px}.scwms-cutoff-name small{display:block;color:var(--sc-muted);font-size:7px;margin-top:2px}.scwms-cutoff-status,.scwms-cutoff-badge{border-radius:999px;background:#f1f3f5;color:#606976;padding:5px 8px;font-size:7px;font-weight:800;white-space:nowrap}.scwms-cutoff-countdown{font-size:40px;line-height:1;font-weight:900;letter-spacing:-.05em;color:#171a20;margin:18px 0 5px}.scwms-cutoff-caption{min-height:30px;margin:0 0 14px;color:var(--sc-muted);font-size:8px}.scwms-cutoff-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.scwms-cutoff-stats>div{background:#f7f8fa;border-radius:10px;padding:9px;text-align:center}.scwms-cutoff-stats small,.scwms-cutoff-stats b{display:block}.scwms-cutoff-stats small{font-size:6.5px;color:#7b8490}.scwms-cutoff-stats b{font-size:16px;margin-top:2px}.scwms-cutoff-card.is-warn{border-color:#d9b768;background:#fffcf4;box-shadow:0 16px 45px rgba(180,119,0,.08)}.scwms-cutoff-card.is-warn .scwms-cutoff-countdown{color:var(--sc-amber)}.scwms-cutoff-card.is-warn .scwms-cutoff-badge{background:var(--sc-amber-soft);color:#765000}.scwms-cutoff-card.is-danger{border-color:var(--sc-red-border);background:#fff7f7;animation:scwmsCutoffPulse 1.45s ease-in-out infinite}.scwms-cutoff-card.is-danger .scwms-cutoff-countdown{color:var(--sc-red)}.scwms-cutoff-card.is-danger .scwms-cutoff-badge{background:var(--sc-red-soft);color:var(--sc-red)}.scwms-cutoff-card.is-muted{opacity:.76}.scwms-dispatch-cutoff-note{margin-top:8px;color:#767f8b;font-size:8px}.scwms-dispatch-ready-list{display:grid;gap:7px}.scwms-dispatch-ready-item{width:100%;border:1px solid #e1e4e8;background:#fff;border-radius:11px;padding:10px;display:grid;grid-template-columns:1fr auto auto;gap:9px;align-items:center;text-align:left;color:var(--sc-text)}.scwms-dispatch-ready-item span b,.scwms-dispatch-ready-item span small{display:block}.scwms-dispatch-ready-item span b{font-size:9px}.scwms-dispatch-ready-item span small{font-size:7px;color:var(--sc-muted);margin-top:2px}.scwms-dispatch-ready-item em{font-style:normal;font-size:7px;font-weight:800}.scwms-dispatch-ready-item em.is-ready{color:var(--sc-green)}.scwms-dispatch-ready-item em.is-review{color:var(--sc-red)}.scwms-dispatch-ready-item.is-supervisor-only{cursor:default;pointer-events:none}@keyframes scwmsCutoffPulse{0%,100%{box-shadow:0 12px 34px rgba(159,29,36,.08)}50%{box-shadow:0 12px 38px rgba(159,29,36,.18)}}

/* DISEÑO DEL DEPÓSITO · PLANTILLAS ---------------------------- */
.scwms-layout-templates{display:grid;grid-template-columns:1.3fr repeat(4,minmax(130px,1fr));gap:9px;align-items:stretch;margin-bottom:14px}.scwms-layout-templates>div:first-child{padding:11px 12px;background:#fff;border:1px solid var(--sc-border);border-radius:13px}.scwms-layout-templates>div:first-child b,.scwms-layout-templates>div:first-child small{display:block}.scwms-layout-templates>div:first-child b{font-size:10px}.scwms-layout-templates>div:first-child small{font-size:7px;color:var(--sc-muted);margin-top:3px}.scwms-layout-templates>button{appearance:none;border:1px solid var(--sc-border);background:#fff;border-radius:13px;padding:9px;cursor:pointer;text-align:left;color:var(--sc-text);transition:.15s}.scwms-layout-templates>button:hover,.scwms-layout-templates>button.is-selected{border-color:var(--sc-red);box-shadow:0 0 0 2px var(--sc-red-soft)}.scwms-layout-templates button b,.scwms-layout-templates button small{display:block}.scwms-layout-templates button b{font-size:8px;margin-top:6px}.scwms-layout-templates button small{font-size:6.5px;color:var(--sc-muted);margin-top:2px}.scwms-template-mini{height:33px;border-radius:7px;background:#f5f6f7;padding:5px;display:grid;grid-template-columns:repeat(6,1fr);gap:2px}.scwms-template-mini:before,.scwms-template-mini:after{content:'';grid-column:1/-1;background:repeating-linear-gradient(90deg,var(--sc-red-soft) 0,var(--sc-red-soft) calc(16.6% - 2px),transparent calc(16.6% - 2px),transparent 16.6%);border:1px solid rgba(159,29,36,.08);border-radius:3px}.scwms-template-mini.three{grid-template-rows:repeat(3,1fr)}.scwms-template-mini.three:after{box-shadow:0 9px 0 var(--sc-red-soft)}.scwms-template-mini.four{grid-template-rows:repeat(4,1fr)}.scwms-template-mini.four:after{box-shadow:0 7px 0 var(--sc-red-soft),0 14px 0 var(--sc-red-soft)}.scwms-template-empty{height:33px;border:1px dashed #c9ced5;border-radius:7px;display:grid;place-items:center;color:#858d99;font-size:18px}

/* PDA · MENOS TEXTO, MÁS SEÑALES ------------------------------ */
.scwms-pda-app .scwms-pda-card.primary{box-shadow:none}.scwms-pda-app .scwms-picking-instruction{padding:17px 12px!important;text-align:center}.scwms-pda-app .scwms-picking-big-icon{font-size:26px!important;line-height:1!important;filter:grayscale(.2);opacity:.82}.scwms-pda-app .scwms-picking-instruction h2{font-size:24px!important;line-height:1.06!important;margin:7px 0!important}.scwms-pda-app .scwms-picking-instruction p{font-size:12px!important;max-width:310px;margin-left:auto!important;margin-right:auto!important}.scwms-pda-app .scwms-picking-check,.scwms-pda-app .scwms-packing-finish,.scwms-pda-app #scwms-dispatch-confirm,.scwms-pda-app #scwms-dispatch-open,.scwms-pda-app #scwms-dispatch-package-check{min-height:54px!important;font-size:14px!important;font-weight:800!important;border-radius:13px!important}.scwms-pda-app input{min-height:50px!important;font-size:16px!important;border-radius:12px!important}.scwms-pda-app .scwms-picking-feedback{min-height:42px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:11px!important;border-radius:11px}.scwms-pda-app .scwms-packing-items{gap:7px!important}.scwms-pda-app .scwms-packing-items>*{border-radius:12px!important}.scwms-pda-app .scwms-pda-simple-help{font-size:10px!important;line-height:1.35!important}.scwms-pda-app .scwms-packing-ml-card{border-radius:13px!important}.scwms-pda-app .scwms-packing-ml-head>span{font-size:16px!important}.scwms-pda-app .scwms-picking-progress{height:7px!important}.scwms-pda-app .scwms-picking-progress i{background:var(--sc-red)!important}

@media(max-width:1300px){.scwms-orders-board,.scwms-orders-kanban{grid-template-columns:repeat(5,minmax(145px,1fr))}.scwms-layout-templates{grid-template-columns:1fr 1fr 1fr}.scwms-layout-templates>div:first-child{grid-column:1/-1}.scwms-ops-live-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.scwms-dispatch-day-kpis-v2{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:930px){.scwms-home-kpis-today,.scwms-ops-supervisor-kpis,.scwms-dispatch-day-kpis-v2{grid-template-columns:repeat(2,minmax(0,1fr))}.scwms-cutoff-grid{grid-template-columns:1fr}.scwms-orders-board,.scwms-orders-kanban{grid-template-columns:repeat(5,180px)}.scwms-sales-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.scwms-ops-live-grid{grid-template-columns:1fr}.scwms-local-search{order:3;width:100%;margin-left:0}.scwms-layout-templates{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.scwms-home-kpis-today,.scwms-ops-supervisor-kpis,.scwms-dispatch-day-kpis-v2,.scwms-sales-kpis{grid-template-columns:1fr}.scwms-today-urgent{grid-template-columns:34px 1fr}.scwms-today-urgent em{grid-column:2}.scwms-cutoff-countdown{font-size:34px}.scwms-layout-templates{grid-template-columns:1fr}.scwms-route-explain{grid-template-columns:1fr}}

/* ===== origen: wms-0873-supervision.css ===== */
/* =============================================================
   Smartclick WMS v0.8.73 · Supervisión, avisos y vistas unificadas
   Mantiene la identidad visual existente (bordó / gris / blanco).
   ============================================================= */

/* HOY · avisos accionables ------------------------------------ */
.scwms-today-alerts-panel{margin:0 0 16px!important;padding:14px 15px!important}
.scwms-today-alerts-panel>header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:9px}
.scwms-today-alerts-panel>header h2{margin:0;font-size:13px}.scwms-today-alerts-panel>header p{margin:3px 0 0;color:var(--sc-muted);font-size:8px}
.scwms-today-alert-list{display:grid;gap:7px}
.scwms-today-alert-row{width:100%;border:1px solid var(--sc-border);border-left:4px solid var(--sc-amber);background:#fff;border-radius:11px;padding:10px 11px;display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:10px;text-align:left;cursor:pointer;color:var(--sc-text);transition:.15s}
.scwms-today-alert-row:hover{border-color:var(--sc-red-border);transform:translateY(-1px)}
.scwms-today-alert-row.is-high{border-left-color:var(--sc-red);background:#fffafa}.scwms-today-alert-row.is-mid{border-left-color:var(--sc-amber);background:#fffdf8}
.scwms-today-alert-dot{width:8px;height:8px;border-radius:50%;background:var(--sc-amber);box-shadow:0 0 0 4px var(--sc-amber-soft)}.scwms-today-alert-row.is-high .scwms-today-alert-dot{background:var(--sc-red);box-shadow:0 0 0 4px var(--sc-red-soft)}
.scwms-today-alert-row b,.scwms-today-alert-row small{display:block}.scwms-today-alert-row b{font-size:9px}.scwms-today-alert-row small{margin-top:2px;color:var(--sc-muted);font-size:7.5px}.scwms-today-alert-row em{font-style:normal;color:var(--sc-red);font-size:7px;font-weight:800;white-space:nowrap}
.scwms-today-alert-empty{padding:14px;border:1px dashed var(--sc-border);border-radius:11px;text-align:center;color:var(--sc-muted);font-size:8px}.scwms-today-alert-empty b,.scwms-today-alert-empty span{display:block}.scwms-today-alert-empty b{color:var(--sc-text);font-size:9px}.scwms-today-alert-empty span{margin-top:3px}

/* PRODUCTOS · un solo acceso, cuatro vistas ------------------- */
.scwms-product-view-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px}
.scwms-product-view-tabs button{appearance:none;border:1px solid var(--sc-border);background:#fff;color:#687180;border-radius:999px;padding:8px 13px;font:700 9px 'Inter',sans-serif;cursor:pointer;transition:.15s}
.scwms-product-view-tabs button:hover{border-color:var(--sc-red-border);color:var(--sc-red)}.scwms-product-view-tabs button.is-active{background:var(--sc-red);border-color:var(--sc-red);color:#fff}

/* PREPARACIÓN / EMPAQUE · el mismo riesgo sigue al pedido ----- */




/* HISTORIAL · una sola pantalla para buscar todo --------------- */
.scwms-history-search-panel{padding:14px 15px!important}.scwms-history-main-search{min-height:42px}
.scwms-history-detail-head #scwms-history-close-detail{width:36px;height:36px;padding:0!important;border-radius:10px;font-size:20px;line-height:1}

/* PROBLEMAS · tarjetas por gravedad ---------------------------- */
.scwms-problem-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.scwms-problem-list{display:grid;gap:9px}
.scwms-problem-card{border:1px solid var(--sc-border);border-left:4px solid #aab1bb;background:#fff;border-radius:12px;padding:13px 14px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}
.scwms-problem-card.is-critical{border-left-color:var(--sc-red);background:#fff8f8}.scwms-problem-card.is-medium{border-left-color:var(--sc-amber);background:#fffdf8}.scwms-problem-card.is-low{border-left-color:#9aa3af}.scwms-problem-card.is-closed{opacity:.65;background:#fafafa}
.scwms-problem-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.scwms-problem-head b{font-size:10px}.scwms-problem-head span{border-radius:999px;padding:4px 7px;font-size:7px;font-weight:800;background:#eef0f2;color:#69727f}.is-critical .scwms-problem-head span{background:var(--sc-red-soft);color:var(--sc-red)}.is-medium .scwms-problem-head span{background:var(--sc-amber-soft);color:#795100}
.scwms-problem-main>small{display:block;color:var(--sc-muted);font-size:7px;margin-top:4px}.scwms-problem-main>p{margin:7px 0 0;color:#5f6874;font-size:8px;line-height:1.4}.scwms-problem-resolve{white-space:nowrap;font-size:8px!important}

/* DISPOSITIVOS · desconexión en medio de una tarea ------------- */
.scwms-device-disconnect-alert{display:grid;grid-template-columns:38px 1fr;gap:11px;align-items:center;margin:0 0 14px;border:1px solid var(--sc-red-border);background:var(--sc-red-soft);border-radius:13px;padding:11px 13px}
.scwms-device-disconnect-alert[hidden]{display:none!important}.scwms-device-disconnect-icon{width:36px;height:36px;border-radius:11px;background:var(--sc-red);color:#fff;display:grid;place-items:center}.scwms-device-disconnect-icon .scwms-icon{width:18px;height:18px}.scwms-device-disconnect-alert b,.scwms-device-disconnect-alert small{display:block}.scwms-device-disconnect-alert b{font-size:10px}.scwms-device-disconnect-alert small{font-size:7.5px;color:#74565b;margin-top:2px}

/* REPORTES · solo operación del depósito ----------------------- */
.scwms-report-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.scwms-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.scwms-report-card{min-height:230px}
.scwms-report-bars{display:grid;gap:10px}.scwms-report-bar-row{display:grid;grid-template-columns:110px 1fr 34px;gap:9px;align-items:center;font-size:8px}.scwms-report-bar-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5f6874}.scwms-report-bar-row>i{height:8px;border-radius:999px;background:#eef0f2;overflow:hidden}.scwms-report-bar-row>i>b{display:block;height:100%;background:var(--sc-red);border-radius:inherit}.scwms-report-bar-row>strong{text-align:right;font-size:9px}
.scwms-report-big{min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.scwms-report-big strong{font-size:46px;line-height:1;font-weight:900;letter-spacing:-.05em;color:var(--sc-green)}.scwms-report-big span{font-size:10px;font-weight:800;margin-top:7px}.scwms-report-big small{max-width:280px;color:var(--sc-muted);font-size:7.5px;margin-top:5px}
.scwms-report-top-list{display:grid;gap:8px}.scwms-report-top-list>div{display:flex;justify-content:space-between;align-items:center;border:1px solid #edf0f2;background:#fafbfb;border-radius:10px;padding:9px 11px;font-size:8px}.scwms-report-top-list span{display:flex;align-items:center;gap:7px}.scwms-report-top-list span>b{width:22px;height:22px;border-radius:8px;display:grid;place-items:center;background:var(--sc-red-soft);color:var(--sc-red);font-size:8px}.scwms-report-top-list>div>strong{font-size:12px}
.scwms-report-guide{display:grid;gap:9px}.scwms-report-guide>div{display:grid;grid-template-columns:27px 1fr;gap:9px;align-items:start}.scwms-report-guide b{width:26px;height:26px;border-radius:9px;background:var(--sc-red-soft);color:var(--sc-red);display:grid;place-items:center;font-size:9px}.scwms-report-guide span{font-size:8px;line-height:1.45;color:#626b77;padding-top:4px}

@media(max-width:1000px){.scwms-report-grid{grid-template-columns:1fr}.scwms-report-kpis,.scwms-problem-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.scwms-report-kpis,.scwms-problem-kpis{grid-template-columns:1fr}.scwms-problem-card{grid-template-columns:1fr}.scwms-today-alert-row{grid-template-columns:10px 1fr}.scwms-today-alert-row em{grid-column:2}.scwms-report-bar-row{grid-template-columns:90px 1fr 28px}}
.scwms-history-primary-row{display:grid!important;grid-template-columns:minmax(260px,1fr) 160px 145px auto!important;gap:9px!important;align-items:center!important}.scwms-history-primary-select{height:42px;border:1px solid var(--sc-border);background:#fff;border-radius:10px;padding:0 10px;font:600 8.5px 'Inter',sans-serif;color:#626b77;outline:none}.scwms-history-primary-select:focus{border-color:var(--sc-red-border);box-shadow:0 0 0 3px var(--sc-red-soft)}
@media(max-width:1050px){.scwms-history-primary-row{grid-template-columns:1fr 1fr!important}.scwms-history-main-search{grid-column:1/-1}.scwms-history-primary-row .scwms-actions{justify-content:flex-end}}
@media(max-width:620px){.scwms-history-primary-row{grid-template-columns:1fr!important}.scwms-history-main-search{grid-column:auto}.scwms-history-primary-row .scwms-actions{justify-content:stretch}.scwms-history-primary-row .scwms-actions>*{flex:1}}

/* ===== origen: wms-0875-polish.css ===== */
/* Smartclick WMS v0.8.75 · ajustes de velocidad y Despacho */

/* Despacho: los 5 números del día tienen que leerse de un vistazo. */
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi{
  min-height:148px;
  padding:22px 20px;
  gap:16px;
  align-items:flex-start;
}
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi-icon{
  width:48px;
  height:48px;
  border-radius:14px;
}
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi-icon .scwms-icon{width:23px;height:23px}
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi small{
  font-size:11px;
  font-weight:800;
  letter-spacing:.02em;
  color:#59616c;
}
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi strong{
  font-size:36px;
  margin:10px 0 8px;
}
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi em{
  font-size:10.5px;
  line-height:1.35;
  color:#59616c;
}

/* Flex / Colecta: sin letras F/C; nombre y hora de corte son protagonistas. */
body.scwms-page .scwms-cutoff-name{display:block}
body.scwms-page .scwms-channel-mark{display:none!important}
body.scwms-page .scwms-cutoff-name h3{
  font-size:22px;
  line-height:1.05;
  font-weight:900;
  letter-spacing:-.02em;
}
body.scwms-page .scwms-cutoff-name small{
  margin-top:7px;
  font-size:12.5px;
  line-height:1.2;
  font-weight:800;
  color:#4d5662;
}
body.scwms-page .scwms-cutoff-countdown{
  font-size:48px;
  margin-top:22px;
  margin-bottom:9px;
}
body.scwms-page .scwms-cutoff-caption{
  min-height:24px;
  margin:0 0 18px;
  color:#3f4854;
  font-size:12px;
  line-height:1.4;
  font-weight:700;
}
body.scwms-page .scwms-cutoff-card.is-danger .scwms-cutoff-caption,
body.scwms-page .scwms-cutoff-card.is-danger .scwms-cutoff-name small{color:#a51d24}
body.scwms-page .scwms-cutoff-stats{gap:10px}
body.scwms-page .scwms-cutoff-stats>div{
  padding:14px 10px;
  border:1px solid #eef0f2;
}
body.scwms-page .scwms-cutoff-stats small{
  font-size:9px;
  font-weight:800;
  color:#65707d;
  text-transform:uppercase;
  letter-spacing:.025em;
}
body.scwms-page .scwms-cutoff-stats b{
  font-size:24px;
  margin-top:5px;
}
body.scwms-page .scwms-cutoff-badge,
body.scwms-page .scwms-cutoff-status{
  font-size:9px;
  padding:6px 10px;
}
body.scwms-page .scwms-dispatch-cutoff-note{
  font-size:9px;
  padding:9px 12px;
  color:#5e6672;
  background:#fff;
  border-color:#e0e4e8;
}

/* Tablero: la corrección manual se explica arriba; no repetimos “Arrastrar” en cada pedido. */
body.scwms-page .scwms-orders-board-note span{
  max-width:900px;
  font-size:8.5px;
  line-height:1.45;
}

@media(max-width:1300px){
  body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi{min-height:132px;padding:18px 16px}
  body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi strong{font-size:31px}
}
@media(max-width:620px){
  body.scwms-page .scwms-cutoff-name h3{font-size:20px}
  body.scwms-page .scwms-cutoff-name small{font-size:11px}
  body.scwms-page .scwms-cutoff-countdown{font-size:39px}
  body.scwms-page .scwms-cutoff-caption{font-size:11px}
}


/* v0.8.76 · Inicio: más aire y acciones principales más cuidadas */
body.scwms-page .scwms-today-alerts-panel{
  margin-bottom:28px!important;
}
body.scwms-page .scwms-home-kpis-today{
  margin-bottom:18px!important;
}
body.scwms-page .scwms-home-stage-panel>header,
body.scwms-page .scwms-home-due-panel>header{
  align-items:center!important;
}
body.scwms-page .scwms-home-mini-link{
  appearance:none;
  border:1px solid #efc3c8;
  background:#fff7f8;
  color:#bd172a;
  min-height:36px;
  padding:8px 12px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  white-space:nowrap;
  font:800 11px/1 'Inter',sans-serif;
  cursor:pointer;
  box-shadow:none;
  transition:background .15s,border-color .15s,color .15s,transform .15s;
}
body.scwms-page .scwms-home-mini-link::after{
  content:'→';
  font-size:13px;
  line-height:1;
  font-weight:900;
  transition:transform .15s;
}
body.scwms-page .scwms-home-mini-link:hover{
  background:var(--sc-red);
  border-color:var(--sc-red);
  color:#fff;
  transform:translateY(-1px);
}
body.scwms-page .scwms-home-mini-link:hover::after{
  transform:translateX(2px);
}
@media(max-width:620px){
  body.scwms-page .scwms-today-alerts-panel{margin-bottom:22px!important}
  body.scwms-page .scwms-home-stage-panel>header,
  body.scwms-page .scwms-home-due-panel>header{align-items:stretch!important}
  body.scwms-page .scwms-home-mini-link{width:100%;margin-top:10px}
}


/* v0.8.82 · Diseño del depósito y Despacho más claros */
body.scwms-page .scwms-layout-templates{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}
body.scwms-page .scwms-layout-templates>button{
  min-height:96px;
}
body.scwms-page .scwms-rack-measures{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
body.scwms-page .scwms-rack-measures label:last-child{grid-column:auto!important}
body.scwms-page .scwms-rack-measures label>span{
  font-size:9px;
  font-weight:800;
  color:#4f5865;
}
body.scwms-page .scwms-rack-measures label>span small{
  display:inline;
  margin-left:3px;
  font-size:7px;
  font-weight:600;
  color:#8b93a0;
}
body.scwms-page .scwms-property-card-head small strong{color:#555e6a;font-weight:800}
body.scwms-page .scwms-property-actions-row .scwms-tool-action,
body.scwms-page .scwms-multi-selection .scwms-tool-action{
  gap:7px!important;
  font-size:9px!important;
}
body.scwms-page .scwms-property-actions-row .scwms-tool-action .scwms-icon,
body.scwms-page .scwms-multi-selection .scwms-tool-action .scwms-icon{
  width:18px;
  height:18px;
  stroke-width:1.9;
}
body.scwms-page .scwms-property-actions-row .scwms-tool-action.danger{
  background:var(--sc-red)!important;
  border-color:var(--sc-red)!important;
  color:#fff!important;
}
body.scwms-page .scwms-cutoff-stats>div{
  background:#fff!important;
  border:1px solid #e5e8ec!important;
  box-shadow:0 3px 10px rgba(21,28,37,.035);
}
body.scwms-page .scwms-cutoff-card.is-danger .scwms-cutoff-stats>div{
  border-color:#f0d6d8!important;
}
body.scwms-page .scwms-cutoff-stats small{color:#59636f!important}
body.scwms-page .scwms-cutoff-stats b{color:#111820!important}
@media(max-width:930px){body.scwms-page .scwms-layout-templates{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){body.scwms-page .scwms-layout-templates{grid-template-columns:1fr!important}}


/* v0.8.83 · marca estable + diseñador simplificado */
body.scwms-page .scwms-sidebar .scwms-brand{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  white-space:nowrap!important;
  font-family:'Inter',Arial,sans-serif!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:0!important;
}
body.scwms-page .scwms-sidebar .scwms-brand .scwms-brand-word{
  display:inline-block!important;
  margin:0!important;
  padding:0!important;
  font:800 12px/1 'Inter',Arial,sans-serif!important;
  letter-spacing:0!important;
  transform:none!important;
}
body.scwms-page .scwms-app.sidebar-collapsed .scwms-sidebar .scwms-brand,
body.scwms-page .scwms-app.sidebar-collapsed .scwms-sidebar .scwms-brand .scwms-brand-word{
  display:none!important;
}

body.scwms-page .scwms-designer.scwms-designer-apb{
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
  min-height:0!important;
}
body.scwms-page .scwms-design-library{
  order:1!important;
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:9px!important;
  padding:16px!important;
}
body.scwms-page .scwms-design-library>h3,
body.scwms-page .scwms-design-library>.scwms-library-help,
body.scwms-page .scwms-design-library>.scwms-library-tip{
  grid-column:1/-1!important;
}
body.scwms-page .scwms-design-library>h3{margin:0!important}
body.scwms-page .scwms-design-library>.scwms-library-help{margin:0 0 4px!important}
body.scwms-page .scwms-design-library button[draggable=true]{
  margin:0!important;
  min-height:78px!important;
  height:100%!important;
}
body.scwms-page .scwms-design-canvas{
  order:2!important;
  width:100%!important;
  min-width:0!important;
}
body.scwms-page .scwms-designer-toolbar{
  justify-content:flex-start!important;
  gap:14px!important;
}
body.scwms-page .scwms-canvas-help{
  margin-left:auto!important;
  background:#fff!important;
  border:1px solid var(--sc-border)!important;
  color:#5f6874!important;
}
body.scwms-page .scwms-properties-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:9998!important;
  background:rgba(13,17,24,.34)!important;
  backdrop-filter:blur(1.5px);
}
body.scwms-page .scwms-properties-backdrop[hidden]{display:none!important}
body.scwms-page .scwms-properties-backdrop.is-open{display:block!important}
body.scwms-page .scwms-properties{
  position:fixed!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  z-index:9999!important;
  width:min(430px,calc(100vw - 28px))!important;
  max-height:calc(100vh - 36px)!important;
  overflow:auto!important;
  padding:18px!important;
  border-radius:18px!important;
  box-shadow:0 28px 80px rgba(12,18,28,.24)!important;
  display:none!important;
}
body.scwms-page .scwms-properties.is-open{display:block!important}
body.scwms-page .scwms-properties-modal-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-bottom:14px!important;
  padding-bottom:12px!important;
  border-bottom:1px solid var(--sc-border)!important;
}
body.scwms-page .scwms-properties-modal-head small{
  display:block!important;
  color:#8a929d!important;
  font-size:7px!important;
  font-weight:800!important;
  letter-spacing:.08em!important;
  margin-bottom:3px!important;
}
body.scwms-page .scwms-properties-modal-head h3{
  margin:0!important;
  font-size:18px!important;
}
body.scwms-page .scwms-properties-close{
  width:34px!important;
  height:34px!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 34px!important;
  border:1px solid var(--sc-border)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#4d5662!important;
  font-size:22px!important;
  line-height:1!important;
  cursor:pointer!important;
}
body.scwms-page .scwms-properties-close:hover{background:#f7f8fa!important;color:var(--sc-red)!important}

@media(max-width:1050px){
  body.scwms-page .scwms-design-library{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:700px){
  body.scwms-page .scwms-design-library{grid-template-columns:1fr 1fr!important}
  body.scwms-page .scwms-designer-toolbar{display:flex!important;flex-wrap:wrap!important}
  body.scwms-page .scwms-canvas-help{width:100%!important;margin-left:0!important}
}


/* v0.8.85 · mobile: menú sin controles superpuestos + pedidos recientes realmente responsive */
@media (max-width:930px){
  /* En mobile existe un solo control dentro del sidebar: la X. El botón de colapsar es solo desktop. */
  body.scwms-page .scwms-sidebar .scwms-sidebar-toggle{
    display:none!important;
  }
  body.scwms-page .scwms-sidebar .scwms-brand-row{
    position:relative!important;
    min-height:44px!important;
    padding-right:52px!important;
    align-items:center!important;
  }
  body.scwms-page .scwms-sidebar .scwms-mobile-close{
    display:grid!important;
    place-items:center!important;
    position:absolute!important;
    top:0!important;
    right:0!important;
    width:42px!important;
    height:42px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid rgba(255,255,255,.12)!important;
    border-radius:13px!important;
    background:rgba(255,255,255,.045)!important;
    color:#fff!important;
    font:500 27px/1 Arial,sans-serif!important;
    z-index:5!important;
  }

  /* El botón hamburguesa ya no flota encima del saludo. */
  body.scwms-page .scwms-topbar{
    display:grid!important;
    grid-template-columns:48px minmax(0,1fr)!important;
    align-items:center!important;
    justify-content:stretch!important;
    gap:10px!important;
    min-height:70px!important;
    height:auto!important;
    padding:11px 14px!important;
  }
  body.scwms-page .scwms-topbar .scwms-menu-btn{
    position:static!important;
    inset:auto!important;
    display:grid!important;
    place-items:center!important;
    width:46px!important;
    height:46px!important;
    margin:0!important;
    flex:none!important;
  }
  body.scwms-page .scwms-topbar-greeting{
    min-width:0!important;
    margin:0!important;
    justify-self:start!important;
    overflow:hidden!important;
  }
  body.scwms-page .scwms-topbar-greeting strong{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.scwms-page .scwms-topbar-right{
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
  }
}

@media (max-width:760px){
  /* En celular los pedidos recientes dejan de ser una tabla ancha y pasan a tarjetas al ancho disponible. */
  body.scwms-page .scwms-home-table-wrap{
    width:100%!important;
    overflow:visible!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
  }
  body.scwms-page .scwms-home-table{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    table-layout:auto!important;
  }
  body.scwms-page .scwms-home-table thead{
    display:none!important;
  }
  body.scwms-page .scwms-home-table tbody{
    display:grid!important;
    width:100%!important;
    gap:10px!important;
  }
  body.scwms-page .scwms-home-table tbody tr{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:10px 14px!important;
    width:100%!important;
    padding:13px 14px!important;
    border:1px solid #e3e7ed!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 4px 14px rgba(28,35,46,.025)!important;
  }
  body.scwms-page .scwms-home-table tbody tr td{
    display:block!important;
    width:auto!important;
    min-width:0!important;
    padding:0!important;
    border:0!important;
    font-size:13px!important;
    line-height:1.3!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
  }
  body.scwms-page .scwms-home-table tbody tr td::before{
    content:attr(data-label)!important;
    display:block!important;
    margin-bottom:4px!important;
    color:#8390a1!important;
    font-size:9px!important;
    line-height:1.1!important;
    font-weight:900!important;
    letter-spacing:.04em!important;
    text-transform:uppercase!important;
  }
  body.scwms-page .scwms-home-table tbody tr td:nth-child(2),
  body.scwms-page .scwms-home-table tbody tr td:nth-child(4){
    grid-column:1/-1!important;
  }
  body.scwms-page .scwms-home-table tbody tr td:nth-child(4){
    order:6!important;
  }
  body.scwms-page .scwms-home-table tbody tr td:nth-child(5){order:4!important}
  body.scwms-page .scwms-home-table tbody tr td:nth-child(6){order:5!important}
  body.scwms-page .scwms-home-table tbody tr td:nth-child(1){order:1!important}
  body.scwms-page .scwms-home-table tbody tr td:nth-child(3){order:2!important}
  body.scwms-page .scwms-home-table tbody tr td:nth-child(2){order:3!important}
  body.scwms-page .scwms-home-stage-pill{
    display:inline-flex!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.2!important;
  }
  body.scwms-page .scwms-home-due-cell{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body.scwms-page .scwms-home-table td.empty{
    grid-column:1/-1!important;
    padding:22px 14px!important;
    text-align:center!important;
  }
  body.scwms-page .scwms-home-table td.empty::before{display:none!important}
}


/* v0.8.86 · mobile compacto + hamburguesa disponible en todas las secciones */
@media (max-width:930px){
  /* En secciones distintas de Inicio mantenemos una barra móvil mínima para no perder el menú. */
  body.scwms-page .scwms-app:not(.is-home-view) .scwms-topbar{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    min-height:62px!important;
    height:62px!important;
    padding:8px 12px!important;
    background:rgba(246,247,249,.96)!important;
    border-bottom:0!important;
  }
  body.scwms-page .scwms-app:not(.is-home-view) .scwms-topbar-greeting,
  body.scwms-page .scwms-app:not(.is-home-view) .scwms-topbar-right{
    display:none!important;
  }
  body.scwms-page .scwms-app:not(.is-home-view) .scwms-topbar .scwms-menu-btn{
    display:grid!important;
    position:static!important;
    inset:auto!important;
    place-items:center!important;
    width:44px!important;
    height:44px!important;
    margin:0!important;
    border-radius:12px!important;
  }
}

@media (max-width:620px){
  /* Ventas: priorizamos las tres métricas en una sola línea y reducimos el alto. */
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-page-head{
    margin-bottom:12px!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-page-head h1{
    font-size:27px!important;
    line-height:1.05!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-page-head p{
    font-size:13px!important;
    line-height:1.4!important;
    margin-top:6px!important;
  }
  body.scwms-page .scwms-kpi-grid.scwms-commercial-kpis.scwms-sales-kpis{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    margin-bottom:12px!important;
  }
  body.scwms-page .scwms-sales-kpis .scwms-kpi{
    min-height:104px!important;
    padding:11px 9px!important;
    gap:7px!important;
    border-radius:14px!important;
    flex-direction:column!important;
    align-items:flex-start!important;
  }
  body.scwms-page .scwms-sales-kpis .scwms-kpi-icon{
    width:31px!important;
    height:31px!important;
    border-radius:9px!important;
  }
  body.scwms-page .scwms-sales-kpis .scwms-kpi-icon .scwms-icon{
    width:16px!important;
    height:16px!important;
  }
  body.scwms-page .scwms-sales-kpis .scwms-kpi>div{
    min-width:0!important;
    width:100%!important;
  }
  body.scwms-page .scwms-sales-kpis .scwms-kpi small{
    font-size:8px!important;
    line-height:1.1!important;
    white-space:normal!important;
  }
  body.scwms-page .scwms-sales-kpis .scwms-kpi strong{
    font-size:23px!important;
    line-height:1!important;
    margin:5px 0 3px!important;
  }
  body.scwms-page .scwms-sales-kpis .scwms-kpi em{
    font-size:8px!important;
    line-height:1.15!important;
    white-space:normal!important;
  }
  body.scwms-page .scwms-sales-toolbar{
    gap:8px!important;
    margin-bottom:12px!important;
  }
  body.scwms-page .scwms-sales-toolbar .scwms-view-chips{
    flex:1 1 auto!important;
    min-width:0!important;
  }
  body.scwms-page .scwms-sales-toolbar .scwms-auto-sync-state{
    width:auto!important;
    flex:0 0 auto!important;
    padding:7px 9px!important;
    font-size:8px!important;
  }
  body.scwms-page .scwms-sales-toolbar .scwms-local-search{
    width:100%!important;
    min-width:0!important;
    order:3!important;
  }
  body.scwms-page .scwms-live-sales-panel{
    border-radius:16px!important;
  }
}


/* v0.8.89 · ventas + pedidos recientes mobile realmente al ancho */
@media (max-width:930px){
  /* En pantallas chicas, las cards de ventas se priorizan compactas y en una sola fila. */
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-kpi-grid.scwms-commercial-kpis.scwms-sales-kpis{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    margin-bottom:12px!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-sales-kpis .scwms-kpi{
    min-height:106px!important;
    padding:11px 9px!important;
    gap:7px!important;
    border-radius:14px!important;
    flex-direction:column!important;
    align-items:flex-start!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-sales-kpis .scwms-kpi-icon{
    width:31px!important;
    height:31px!important;
    border-radius:9px!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-sales-kpis .scwms-kpi-icon .scwms-icon{
    width:16px!important;
    height:16px!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-sales-kpis .scwms-kpi > div{
    min-width:0!important;
    width:100%!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-sales-kpis .scwms-kpi small{
    font-size:8px!important;
    line-height:1.1!important;
    white-space:normal!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-sales-kpis .scwms-kpi strong{
    font-size:23px!important;
    line-height:1!important;
    margin:5px 0 3px!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-sales-kpis .scwms-kpi em{
    font-size:8px!important;
    line-height:1.15!important;
    white-space:normal!important;
  }

  /* Pedidos recientes de Inicio: pasarlos a tarjetas un poco antes para evitar cortes. */
  body.scwms-page .scwms-home-table-wrap{
    width:100%!important;
    overflow:visible!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
  }
  body.scwms-page .scwms-home-table{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    table-layout:auto!important;
  }
  body.scwms-page .scwms-home-table thead{
    display:none!important;
  }
  body.scwms-page .scwms-home-table tbody{
    display:grid!important;
    width:100%!important;
    gap:10px!important;
  }
  body.scwms-page .scwms-home-table tbody tr{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:10px 14px!important;
    width:100%!important;
    padding:13px 14px!important;
    border:1px solid #e3e7ed!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 4px 14px rgba(28,35,46,.025)!important;
  }
  body.scwms-page .scwms-home-table tbody tr td{
    display:block!important;
    width:auto!important;
    min-width:0!important;
    padding:0!important;
    border:0!important;
    font-size:13px!important;
    line-height:1.3!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
  }
  body.scwms-page .scwms-home-table tbody tr td::before{
    content:attr(data-label)!important;
    display:block!important;
    margin-bottom:4px!important;
    color:#8390a1!important;
    font-size:9px!important;
    line-height:1.1!important;
    font-weight:900!important;
    letter-spacing:.04em!important;
    text-transform:uppercase!important;
  }
  body.scwms-page .scwms-home-table tbody tr td:nth-child(2),
  body.scwms-page .scwms-home-table tbody tr td:nth-child(4){
    grid-column:1/-1!important;
  }
  body.scwms-page .scwms-home-table tbody tr td:nth-child(4){
    order:6!important;
  }
  body.scwms-page .scwms-home-table tbody tr td:nth-child(5){order:4!important}
  body.scwms-page .scwms-home-table tbody tr td:nth-child(6){order:5!important}
  body.scwms-page .scwms-home-table tbody tr td:nth-child(1){order:1!important}
  body.scwms-page .scwms-home-table tbody tr td:nth-child(3){order:2!important}
  body.scwms-page .scwms-home-table tbody tr td:nth-child(2){order:3!important}
  body.scwms-page .scwms-home-stage-pill,
  body.scwms-page .scwms-home-due-cell{
    max-width:100%!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.2!important;
  }
  body.scwms-page .scwms-home-table td.empty{
    grid-column:1/-1!important;
    padding:22px 14px!important;
    text-align:center!important;
  }
  body.scwms-page .scwms-home-table td.empty::before{display:none!important}

  /* Ventas recientes: también a tarjetas al ancho disponible. */
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-table-wrap{
    width:100%!important;
    overflow:visible!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-table{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    table-layout:auto!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-table thead{
    display:none!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-table tbody{
    display:grid!important;
    width:100%!important;
    gap:10px!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-table tbody tr{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:10px 14px!important;
    width:100%!important;
    padding:13px 14px!important;
    border:1px solid #e3e7ed!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 4px 14px rgba(28,35,46,.025)!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-table tbody tr td{
    display:block!important;
    width:auto!important;
    min-width:0!important;
    padding:0!important;
    border:0!important;
    font-size:13px!important;
    line-height:1.3!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-table tbody tr td::before{
    content:attr(data-label)!important;
    display:block!important;
    margin-bottom:4px!important;
    color:#8390a1!important;
    font-size:9px!important;
    line-height:1.1!important;
    font-weight:900!important;
    letter-spacing:.04em!important;
    text-transform:uppercase!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-table td.empty{
    grid-column:1/-1!important;
    padding:22px 14px!important;
    text-align:center!important;
  }
  body.scwms-page .scwms-section[data-section="ventas"] .scwms-table td.empty::before{display:none!important}
}


/* v0.8.94 · separar etapa interna WMS del estado En camino de Mercado Libre */
body.scwms-page .scwms-home-kpis-today{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}
body.scwms-page .scwms-home-kpi.is-ml-transit .scwms-home-kpi-icon{
  background:#eef4ff!important;
  color:#315fa8!important;
}
body.scwms-page .scwms-dispatch-day-kpis-v2{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
}
body.scwms-page .scwms-ml-transit-badge{
  display:inline-flex!important;
  width:max-content!important;
  max-width:100%!important;
  margin-top:7px!important;
  padding:4px 7px!important;
  border-radius:999px!important;
  background:#eef4ff!important;
  color:#315fa8!important;
  font-size:7px!important;
  font-style:normal!important;
  font-weight:800!important;
  line-height:1.1!important;
}
@media(max-width:1300px){
  body.scwms-page .scwms-home-kpis-today{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.scwms-page .scwms-dispatch-day-kpis-v2{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:930px){
  body.scwms-page .scwms-home-kpis-today,
  body.scwms-page .scwms-dispatch-day-kpis-v2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
  body.scwms-page .scwms-home-kpis-today,
  body.scwms-page .scwms-dispatch-day-kpis-v2{grid-template-columns:1fr!important}
}

body.scwms-page .scwms-dispatch-day-kpis-six{grid-template-columns:repeat(6,minmax(0,1fr))!important}
body.scwms-page .scwms-dispatch-status-explain{
  display:flex!important;flex-wrap:wrap!important;gap:8px 14px!important;align-items:center!important;
  margin:-4px 0 16px!important;padding:10px 13px!important;border:1px solid #dfe5ec!important;
  border-radius:12px!important;background:#fff!important;color:#596475!important;font-size:8px!important;line-height:1.35!important;
}
body.scwms-page .scwms-dispatch-status-explain>b{color:#161b22!important;font-size:8.5px!important}
body.scwms-page .scwms-dispatch-status-explain strong{color:#161b22!important}
body.scwms-page .scwms-ml-transit-note{display:block!important;margin-top:5px!important;color:#315fa8!important;font-size:7px!important;font-weight:800!important}
@media(max-width:1300px){body.scwms-page .scwms-dispatch-day-kpis-six{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:930px){body.scwms-page .scwms-dispatch-day-kpis-six{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){body.scwms-page .scwms-dispatch-day-kpis-six{grid-template-columns:1fr!important}}


/* v0.9.02 · notificación global de ventas nuevas */
body.scwms-page .scwms-sale-bell{
  position:fixed!important;right:18px!important;bottom:18px!important;z-index:86!important;
  width:48px!important;height:48px!important;border:1px solid #e3e7ed!important;border-radius:16px!important;
  background:#fff!important;color:#222a37!important;display:grid!important;place-items:center!important;cursor:pointer!important;
  box-shadow:0 12px 34px rgba(20,25,35,.16)!important;
}
body.scwms-page .scwms-sale-bell .scwms-icon{width:21px!important;height:21px!important}
body.scwms-page .scwms-sale-bell>b{
  position:absolute!important;right:-5px!important;top:-5px!important;min-width:20px!important;height:20px!important;padding:0 5px!important;
  display:grid!important;place-items:center!important;border:2px solid #fff!important;border-radius:999px!important;background:var(--sc-red)!important;color:#fff!important;
  font-size:9px!important;font-weight:900!important;
}
body.scwms-page .scwms-sale-notification-panel{
  position:fixed!important;right:18px!important;bottom:76px!important;z-index:85!important;width:min(370px,calc(100vw - 28px))!important;max-height:min(520px,70vh)!important;
  overflow:hidden!important;background:#fff!important;border:1px solid #e3e7ed!important;border-radius:18px!important;box-shadow:0 22px 65px rgba(18,23,33,.20)!important;
}
body.scwms-page .scwms-sale-notification-panel[hidden]{display:none!important}
body.scwms-page .scwms-sale-notification-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:15px 16px!important;border-bottom:1px solid #edf0f4!important}
body.scwms-page .scwms-sale-notification-head>div{display:grid!important;gap:2px!important}
body.scwms-page .scwms-sale-notification-head b{font-size:15px!important;color:#131821!important}
body.scwms-page .scwms-sale-notification-head span{font-size:10px!important;color:#7d8795!important}
body.scwms-page .scwms-sale-notification-head button{border:0!important;background:transparent!important;color:var(--sc-red)!important;font-size:10px!important;font-weight:800!important;cursor:pointer!important}
body.scwms-page .scwms-sale-notification-list{max-height:420px!important;overflow:auto!important;padding:7px!important}
body.scwms-page .scwms-sale-notification-empty{padding:26px 18px!important;text-align:center!important;color:#7d8795!important;font-size:11px!important}
body.scwms-page .scwms-sale-notification-item{width:100%!important;display:grid!important;grid-template-columns:12px minmax(0,1fr)!important;gap:10px!important;text-align:left!important;border:0!important;border-radius:12px!important;background:#fff!important;padding:11px 10px!important;cursor:pointer!important}
body.scwms-page .scwms-sale-notification-item:hover{background:#f7f8fa!important}
body.scwms-page .scwms-sale-notification-item.is-unread{background:#fff6f6!important}
body.scwms-page .scwms-sale-notification-dot{width:8px!important;height:8px!important;margin-top:5px!important;border-radius:50%!important;background:#c9cfd8!important}
body.scwms-page .scwms-sale-notification-item.is-unread .scwms-sale-notification-dot{background:var(--sc-red)!important;box-shadow:0 0 0 4px rgba(215,25,32,.09)!important}
body.scwms-page .scwms-sale-notification-item>span:last-child{min-width:0!important;display:grid!important;gap:2px!important}
body.scwms-page .scwms-sale-notification-item b{font-size:11px!important;color:#161b24!important}
body.scwms-page .scwms-sale-notification-item small{font-size:10px!important;color:#4f5968!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.scwms-page .scwms-sale-notification-item em{font-style:normal!important;font-size:9px!important;color:#9099a6!important}
body.scwms-page .scwms-sale-toast{
  position:fixed!important;right:18px!important;top:18px!important;z-index:130!important;width:min(380px,calc(100vw - 28px))!important;
  display:grid!important;grid-template-columns:40px minmax(0,1fr) auto!important;align-items:center!important;gap:11px!important;padding:12px 14px!important;
  border:1px solid #f0c7ca!important;border-radius:16px!important;background:#fff!important;color:#151923!important;box-shadow:0 18px 55px rgba(20,25,35,.20)!important;
  cursor:pointer!important;opacity:0!important;transform:translateY(-10px)!important;transition:opacity .2s ease,transform .2s ease!important;
}
body.scwms-page .scwms-sale-toast[hidden]{display:none!important}
body.scwms-page .scwms-sale-toast.is-visible{opacity:1!important;transform:none!important}
body.scwms-page .scwms-sale-toast-icon{width:40px!important;height:40px!important;border-radius:12px!important;background:#fff0f1!important;color:var(--sc-red)!important;display:grid!important;place-items:center!important}
body.scwms-page .scwms-sale-toast-icon .scwms-icon{width:20px!important;height:20px!important}
body.scwms-page .scwms-sale-toast>span:nth-child(2){display:grid!important;gap:2px!important;min-width:0!important;text-align:left!important}
body.scwms-page .scwms-sale-toast b{font-size:13px!important;color:#121722!important}
body.scwms-page .scwms-sale-toast small{font-size:10px!important;color:#677181!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.scwms-page .scwms-sale-toast em{font-style:normal!important;font-size:10px!important;font-weight:900!important;color:var(--sc-red)!important}
@media(max-width:620px){
  body.scwms-page .scwms-sale-bell{right:12px!important;bottom:12px!important;width:46px!important;height:46px!important;border-radius:14px!important}
  body.scwms-page .scwms-sale-notification-panel{right:12px!important;bottom:66px!important;width:calc(100vw - 24px)!important}
  body.scwms-page .scwms-sale-toast{right:12px!important;top:12px!important;width:calc(100vw - 24px)!important;grid-template-columns:36px minmax(0,1fr) auto!important;padding:10px 11px!important}
  body.scwms-page .scwms-sale-toast-icon{width:36px!important;height:36px!important}
}


/* v0.9.03 · cancelación global: alerta roja y sonido desde JS */
body.scwms-page .scwms-sale-notification-item.is-cancelled{
  border-left:3px solid #d71920!important;
  background:#fff8f8!important;
}
body.scwms-page .scwms-sale-notification-item.is-cancelled.is-unread{
  background:#fff0f1!important;
}
body.scwms-page .scwms-sale-notification-item.is-cancelled .scwms-sale-notification-dot{
  background:#d71920!important;
  box-shadow:0 0 0 4px rgba(215,25,32,.10)!important;
}
body.scwms-page .scwms-sale-toast.is-cancelled{
  border-color:#efb7ba!important;
  background:#fff5f5!important;
  box-shadow:0 20px 55px rgba(160,18,24,.18)!important;
}
body.scwms-page .scwms-sale-toast.is-cancelled .scwms-sale-toast-icon{
  background:#ffe3e5!important;
  color:#c8151c!important;
}
body.scwms-page .scwms-sale-toast.is-cancelled b,
body.scwms-page .scwms-sale-toast.is-cancelled em{
  color:#b91218!important;
}

/* ===== origen: wms-0905-mobile-notices.css ===== */
/* Smartclick WMS v0.9.05 · indicador en pestaña + Pedidos recientes mobile compacto */

body.scwms-page .scwms-home-product-title{display:block;min-width:0}

@media (max-width:930px){
  body.scwms-page .scwms-home-recent-panel{padding:12px!important}
  body.scwms-page .scwms-home-recent-panel>header{gap:8px!important;margin-bottom:10px!important}
  body.scwms-page .scwms-home-table tbody{gap:8px!important}
  body.scwms-page .scwms-home-table tbody tr{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px 12px!important;
    padding:11px 12px!important;
    border-radius:12px!important;
  }
  body.scwms-page .scwms-home-table tbody tr td{
    font-size:12px!important;
    line-height:1.22!important;
  }
  body.scwms-page .scwms-home-table tbody tr td::before{
    margin-bottom:3px!important;
    font-size:8px!important;
  }
  body.scwms-page .scwms-home-table tbody tr td:nth-child(1){grid-column:1!important;order:1!important}
  body.scwms-page .scwms-home-table tbody tr td:nth-child(3){grid-column:2!important;order:2!important;text-align:right!important}
  body.scwms-page .scwms-home-table tbody tr td:nth-child(3)::before{text-align:right!important}
  body.scwms-page .scwms-home-table tbody tr td:nth-child(2){grid-column:1/-1!important;order:3!important}
  body.scwms-page .scwms-home-table tbody tr td:nth-child(5){grid-column:1!important;order:4!important}
  body.scwms-page .scwms-home-table tbody tr td:nth-child(6){grid-column:2!important;order:5!important;text-align:right!important}
  body.scwms-page .scwms-home-table tbody tr td:nth-child(6)::before{text-align:right!important}
  body.scwms-page .scwms-home-table tbody tr td:nth-child(4){grid-column:1/-1!important;order:6!important}
  body.scwms-page .scwms-home-product-title{
    display:-webkit-box!important;
    max-width:100%!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    line-clamp:2!important;
    font-size:12.5px!important;
    line-height:1.25!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body.scwms-page .scwms-home-stage-pill{
    padding:5px 7px!important;
    font-size:9.5px!important;
    line-height:1.1!important;
  }
}

@media (max-width:560px){
  body.scwms-page .scwms-home-recent-panel{padding:11px!important}
  body.scwms-page .scwms-home-recent-panel>header{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
  }
  body.scwms-page .scwms-home-recent-panel>header h2{font-size:18px!important}
  body.scwms-page .scwms-home-recent-panel>header p{font-size:11px!important}
  body.scwms-page .scwms-home-orders-link{
    width:auto!important;
    margin-top:0!important;
    padding:8px 9px!important;
    font-size:10px!important;
    white-space:nowrap!important;
  }
  body.scwms-page .scwms-home-table tbody tr{padding:10px!important;gap:7px 10px!important}
  body.scwms-page .scwms-home-product-title{font-size:12px!important}
}

/* ===== origen: wms-0906-board-notices.css ===== */
/* Smartclick WMS v0.9.06 · tablero sin corte horizontal + limpieza de notificaciones */

/* PEDIDOS ML: las cinco etapas tienen que entrar completas. No usamos scroll horizontal. */
body.scwms-page .scwms-orders-board-wrap{min-width:0!important;max-width:100%!important;overflow:visible!important}
body.scwms-page .scwms-orders-kanban{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  overflow:visible!important;
  gap:10px!important;
}
body.scwms-page .scwms-kanban-col{min-width:0!important;width:auto!important;max-width:100%!important}
body.scwms-page .scwms-kanban-card{min-width:0!important}
body.scwms-page .scwms-kanban-card>div{min-width:0!important;gap:5px!important}
body.scwms-page .scwms-kanban-card b{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.scwms-page .scwms-kanban-card span{flex:0 0 auto!important}

/* En pantallas más chicas el tablero baja a filas, en vez de cortar la última columna. */
@media(max-width:1350px){
  body.scwms-page .scwms-orders-kanban{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:900px){
  body.scwms-page .scwms-orders-kanban{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:580px){
  body.scwms-page .scwms-orders-kanban{grid-template-columns:minmax(0,1fr)!important}
}

/* NOTIFICACIONES: borrar todo o una notificación puntual. */
body.scwms-page .scwms-sale-notification-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
body.scwms-page .scwms-sale-notification-actions button{white-space:nowrap!important}
body.scwms-page #scwms-sale-notification-clear{color:#667180!important}
body.scwms-page #scwms-sale-notification-clear:hover{color:var(--sc-red)!important}
body.scwms-page .scwms-sale-notification-row{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) 30px!important;align-items:center!important;gap:2px!important;border-radius:12px!important}
body.scwms-page .scwms-sale-notification-row:hover{background:#f7f8fa!important}
body.scwms-page .scwms-sale-notification-row .scwms-sale-notification-item{min-width:0!important;background:transparent!important}
body.scwms-page .scwms-sale-notification-row .scwms-sale-notification-item.is-unread{background:#fff6f6!important}
body.scwms-page .scwms-sale-notification-row .scwms-sale-notification-item.is-cancelled{background:#fff8f8!important}
body.scwms-page .scwms-sale-notification-row .scwms-sale-notification-item.is-cancelled.is-unread{background:#fff0f1!important}
body.scwms-page .scwms-sale-notification-delete{
  width:28px!important;height:28px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#8b94a1!important;
  display:grid!important;place-items:center!important;font-size:19px!important;line-height:1!important;cursor:pointer!important;padding:0!important;
}
body.scwms-page .scwms-sale-notification-delete:hover{background:#fff0f1!important;color:var(--sc-red)!important}

@media(max-width:620px){
  body.scwms-page .scwms-sale-notification-head{align-items:flex-start!important}
  body.scwms-page .scwms-sale-notification-actions{gap:5px!important}
  body.scwms-page .scwms-sale-notification-actions button{font-size:9px!important}
}


/* v0.9.07 · venta que entra después del corte y Mercado Libre aún exige sacar hoy */
body.scwms-page .scwms-sale-notification-item.is-after-cutoff{
  border-left:4px solid #d71920!important;
  background:#fff7ed!important;
}
body.scwms-page .scwms-sale-notification-item.is-after-cutoff.is-unread{
  background:#fff0e0!important;
}
body.scwms-page .scwms-sale-notification-item.is-after-cutoff .scwms-sale-notification-dot{
  background:#d71920!important;
  box-shadow:0 0 0 5px rgba(215,25,32,.13)!important;
}
body.scwms-page .scwms-sale-notification-item.is-after-cutoff b{color:#a90f18!important}
body.scwms-page .scwms-sale-toast.is-after-cutoff{
  border:2px solid #d71920!important;
  background:#fff4e8!important;
  box-shadow:0 22px 65px rgba(177,18,25,.28)!important;
}
body.scwms-page .scwms-sale-toast.is-after-cutoff .scwms-sale-toast-icon{
  background:#d71920!important;
  color:#fff!important;
}
body.scwms-page .scwms-sale-toast.is-after-cutoff b,
body.scwms-page .scwms-sale-toast.is-after-cutoff em{color:#b30f18!important}
body.scwms-page .scwms-sale-toast.is-after-cutoff b{font-size:14px!important;font-weight:950!important}

/* ===== origen: wms-0909-notifications.css ===== */
/* Smartclick WMS v0.9.09 · alertas con identidad propia */

body.scwms-page .scwms-sale-notification-panel{
  overflow:hidden!important;
  border:1px solid #e7d9db!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 24px 70px rgba(49,20,25,.18)!important;
}
body.scwms-page .scwms-sale-notification-head{
  padding:17px 18px 15px!important;
  background:linear-gradient(145deg,#fff 0%,#fff8f8 100%)!important;
  border-bottom:1px solid #f0e5e6!important;
}
body.scwms-page .scwms-sale-notification-head>div:first-child{gap:3px!important}
body.scwms-page .scwms-sale-notification-head .scwms-sale-notification-brand{
  width:max-content!important;
  display:inline-flex!important;
  align-items:center!important;
  min-height:20px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  background:#97141f!important;
  color:#fff!important;
  font-size:8px!important;
  line-height:20px!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
}
body.scwms-page .scwms-sale-notification-head b{
  margin-top:2px!important;
  font-size:17px!important;
  line-height:1.15!important;
  font-weight:900!important;
  color:#24171a!important;
}
body.scwms-page .scwms-sale-notification-head>div:first-child>span:last-child{
  font-size:10px!important;
  color:#7a666a!important;
}
body.scwms-page .scwms-sale-notification-list{padding:9px!important;background:#fff!important}
body.scwms-page .scwms-sale-notification-row{margin:2px 0!important;border:1px solid transparent!important}
body.scwms-page .scwms-sale-notification-row:hover{background:#fbf8f8!important;border-color:#f2e8e9!important}
body.scwms-page .scwms-sale-notification-item{padding:12px 11px!important;border-radius:13px!important}
body.scwms-page .scwms-sale-notification-item b{font-size:11.5px!important;font-weight:850!important}
body.scwms-page .scwms-sale-notification-item small{font-size:10.5px!important}
body.scwms-page .scwms-sale-notification-item em{margin-top:1px!important;font-size:9px!important}

/* Alerta flotante dentro del WMS */
body.scwms-page .scwms-sale-toast{
  right:22px!important;
  top:18px!important;
  width:min(455px,calc(100vw - 32px))!important;
  grid-template-columns:54px minmax(0,1fr) auto!important;
  gap:13px!important;
  padding:14px 15px!important;
  overflow:hidden!important;
  border:1px solid #ead9db!important;
  border-left:5px solid #97141f!important;
  border-radius:19px!important;
  background:linear-gradient(145deg,#ffffff 0%,#fff8f8 100%)!important;
  box-shadow:0 24px 70px rgba(47,17,22,.24),0 6px 18px rgba(47,17,22,.10)!important;
}
body.scwms-page .scwms-sale-toast::after{
  content:""!important;
  position:absolute!important;
  left:0!important;right:0!important;bottom:0!important;
  height:3px!important;
  background:linear-gradient(90deg,#97141f,#d84a55,#97141f)!important;
  opacity:.9!important;
}
body.scwms-page .scwms-sale-toast-icon{
  width:54px!important;
  height:54px!important;
  border-radius:16px!important;
  background:linear-gradient(145deg,#a71927,#7d0e18)!important;
  color:#fff!important;
  box-shadow:0 9px 22px rgba(151,20,31,.24)!important;
}
body.scwms-page .scwms-sale-toast-icon .scwms-icon{width:25px!important;height:25px!important;stroke-width:1.9!important}
body.scwms-page .scwms-sale-toast-content{
  display:grid!important;
  gap:2px!important;
  min-width:0!important;
  text-align:left!important;
}
body.scwms-page .scwms-sale-toast-topline{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
  margin-bottom:1px!important;
}
body.scwms-page .scwms-sale-toast-topline strong{
  font-size:8.5px!important;
  font-weight:900!important;
  letter-spacing:.11em!important;
  color:#6f5960!important;
  white-space:nowrap!important;
}
body.scwms-page .scwms-sale-toast-topline i{
  display:inline-flex!important;
  align-items:center!important;
  min-height:19px!important;
  padding:0 7px!important;
  border-radius:999px!important;
  background:#f4e0e2!important;
  color:#97141f!important;
  font-size:8px!important;
  line-height:19px!important;
  font-style:normal!important;
  font-weight:900!important;
  letter-spacing:.04em!important;
  white-space:nowrap!important;
}
body.scwms-page .scwms-sale-toast b{
  color:#211619!important;
  font-size:15px!important;
  line-height:1.18!important;
  font-weight:900!important;
}
body.scwms-page .scwms-sale-toast small{
  margin-top:2px!important;
  color:#6e6266!important;
  font-size:10.5px!important;
  line-height:1.3!important;
}
body.scwms-page .scwms-sale-toast>em{
  align-self:center!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:32px!important;
  padding:0 10px!important;
  border-radius:10px!important;
  background:#97141f!important;
  color:#fff!important;
  font-size:9px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
body.scwms-page .scwms-sale-toast:hover{transform:translateY(1px)!important}
body.scwms-page .scwms-sale-toast.is-visible:hover{transform:translateY(1px)!important}

/* Cancelación: rojo inequívoco */
body.scwms-page .scwms-sale-toast.is-cancelled{
  border:2px solid #ba1e2b!important;
  border-left-width:6px!important;
  background:linear-gradient(145deg,#fffafa 0%,#ffedef 100%)!important;
  box-shadow:0 24px 72px rgba(151,20,31,.28)!important;
}
body.scwms-page .scwms-sale-toast.is-cancelled .scwms-sale-toast-icon{
  background:linear-gradient(145deg,#c52433,#8f101b)!important;
  color:#fff!important;
}
body.scwms-page .scwms-sale-toast.is-cancelled .scwms-sale-toast-topline i{
  background:#b71927!important;
  color:#fff!important;
}
body.scwms-page .scwms-sale-toast.is-cancelled b{color:#9b111c!important}
body.scwms-page .scwms-sale-toast.is-cancelled>em{background:#a61320!important;color:#fff!important}
body.scwms-page .scwms-sale-toast.is-cancelled::after{background:#b71927!important}

/* Después del corte: prioridad máxima */
body.scwms-page .scwms-sale-toast.is-after-cutoff{
  border:2px solid #a90f18!important;
  border-left-width:6px!important;
  background:linear-gradient(145deg,#fff9f2 0%,#ffe9d4 100%)!important;
  box-shadow:0 26px 78px rgba(131,19,25,.32)!important;
}
body.scwms-page .scwms-sale-toast.is-after-cutoff .scwms-sale-toast-icon{
  background:linear-gradient(145deg,#b9131e,#7f0d15)!important;
  color:#fff!important;
}
body.scwms-page .scwms-sale-toast.is-after-cutoff .scwms-sale-toast-topline i{
  background:#a90f18!important;
  color:#fff!important;
}
body.scwms-page .scwms-sale-toast.is-after-cutoff b{color:#8e0d15!important;font-size:15px!important}
body.scwms-page .scwms-sale-toast.is-after-cutoff>em{background:#99121b!important;color:#fff!important}
body.scwms-page .scwms-sale-toast.is-after-cutoff::after{background:linear-gradient(90deg,#99121b,#f0a035,#99121b)!important}

@media(max-width:620px){
  body.scwms-page .scwms-sale-toast{
    right:12px!important;top:12px!important;
    width:calc(100vw - 24px)!important;
    grid-template-columns:46px minmax(0,1fr)!important;
    gap:10px!important;
    padding:12px!important;
  }
  body.scwms-page .scwms-sale-toast-icon{width:46px!important;height:46px!important;border-radius:14px!important}
  body.scwms-page .scwms-sale-toast>em{grid-column:2!important;justify-self:start!important;min-height:28px!important;margin-top:4px!important}
  body.scwms-page .scwms-sale-toast b{font-size:13px!important}
  body.scwms-page .scwms-sale-toast-topline{flex-wrap:wrap!important;gap:5px!important}
  body.scwms-page .scwms-sale-notification-head{display:grid!important;gap:10px!important}
  body.scwms-page .scwms-sale-notification-actions{justify-content:flex-start!important}
}

/* ===== origen: wms-0915-ops-kpis.css ===== */
/* Smartclick WMS v0.9.15 · KPI bonitas para Preparación y Empaque */
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis,
body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:20px!important;
  align-items:stretch;
  margin-bottom:18px;
}
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi,
body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis .scwms-kpi{
  position:relative;
  min-height:188px;
  padding:24px 20px 22px;
  border-radius:22px;
  border:1px solid #e4e6eb;
  box-shadow:0 18px 38px rgba(24,31,42,.07);
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
  gap:14px;
  overflow:hidden;
  background:linear-gradient(180deg,#ffffff 0%,#fbfbfc 100%);
}
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi:before,
body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis .scwms-kpi:before{
  content:'';
  position:absolute;
  left:0;right:0;top:0;
  height:5px;
  background:linear-gradient(90deg,#f7d9dc 0%,#d32027 100%);
  opacity:.9;
}
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi-icon,
body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis .scwms-kpi-icon{
  width:62px;
  height:62px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:#fff1f2;
  color:#d32027;
  box-shadow:inset 0 0 0 1px rgba(211,32,39,.08);
}
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi-icon .scwms-icon,
body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis .scwms-kpi-icon .scwms-icon{
  width:28px;height:28px;
}
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi>div,
body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis .scwms-kpi>div{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
}
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi small,
body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis .scwms-kpi small{
  min-height:44px;
  margin:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  font-size:13px!important;
  line-height:1.25;
  text-transform:uppercase;
  letter-spacing:.02em;
  color:#5d6570!important;
}
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi strong,
body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis .scwms-kpi strong{
  margin:10px 0 10px;
  font-size:54px!important;
  line-height:.95;
  letter-spacing:-1.6px;
  color:#121923;
}
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi em,
body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis .scwms-kpi em{
  min-height:42px;
  max-width:190px;
  font-size:14px!important;
  line-height:1.35;
  color:#778190!important;
}
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi.danger,
body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis .scwms-kpi.danger{
  background:linear-gradient(180deg,#fffdfa 0%,#ffffff 100%);
}
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi.danger strong,
body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis .scwms-kpi.danger strong{color:#d18400}
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi.danger .scwms-kpi-icon,
body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis .scwms-kpi.danger .scwms-kpi-icon{background:#fff6e4;color:#d18400}
@media(max-width:1400px){
  body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis,
  body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px){
  body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis,
  body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis{grid-template-columns:1fr!important}
  body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi,
  body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis .scwms-kpi{min-height:170px}
  body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi strong,
  body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis .scwms-kpi strong{font-size:46px!important}
}

/* ===== origen: wms-0918-toast-polish.css ===== */
/* Smartclick WMS v0.9.18 · alerta flotante más limpia y premium */
body.scwms-page .scwms-sale-toast{
  border:1px solid #e8dee0!important;
  border-left:4px solid #b71d2a!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,#ffffff 0%,#fffdfd 100%)!important;
  box-shadow:0 18px 48px rgba(41,20,24,.12),0 3px 12px rgba(41,20,24,.06)!important;
}
body.scwms-page .scwms-sale-toast::after{display:none!important;content:none!important}
body.scwms-page .scwms-sale-toast::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  border-radius:22px!important;
  pointer-events:none!important;
  background:radial-gradient(circle at top right, rgba(183,29,42,.06), transparent 34%), radial-gradient(circle at bottom left, rgba(183,29,42,.04), transparent 28%)!important;
}
body.scwms-page .scwms-sale-toast-icon{
  background:linear-gradient(180deg,#b71d2a 0%,#9b1622 100%)!important;
  box-shadow:0 10px 24px rgba(183,29,42,.18)!important;
}
body.scwms-page .scwms-sale-toast-topline strong{color:#78656a!important}
body.scwms-page .scwms-sale-toast-topline i{
  background:#f7eaec!important;
  color:#a21723!important;
}
body.scwms-page .scwms-sale-toast b{color:#25191c!important}
body.scwms-page .scwms-sale-toast small{color:#74676c!important}
body.scwms-page .scwms-sale-toast>em{
  background:linear-gradient(180deg,#b71d2a 0%,#a11622 100%)!important;
  border-radius:12px!important;
  box-shadow:0 8px 18px rgba(183,29,42,.15)!important;
}
body.scwms-page .scwms-sale-toast:hover,
body.scwms-page .scwms-sale-toast.is-visible:hover{transform:translateY(0)!important}

body.scwms-page .scwms-sale-toast.is-cancelled{
  border:1px solid #efcfd5!important;
  border-left:5px solid #b91524!important;
  background:linear-gradient(180deg,#fffafa 0%,#fff6f7 100%)!important;
  box-shadow:0 18px 52px rgba(149,20,30,.16)!important;
}
body.scwms-page .scwms-sale-toast.is-cancelled::before{
  background:radial-gradient(circle at top right, rgba(185,21,36,.08), transparent 36%)!important;
}
body.scwms-page .scwms-sale-toast.is-cancelled .scwms-sale-toast-topline i{
  background:#fdecef!important;
  color:#b91524!important;
}
body.scwms-page .scwms-sale-toast.is-cancelled b{color:#8f111c!important}
body.scwms-page .scwms-sale-toast.is-cancelled>em{background:linear-gradient(180deg,#b91524 0%,#98111d 100%)!important}

body.scwms-page .scwms-sale-toast.is-after-cutoff{
  border:1px solid #f0dcc3!important;
  border-left:5px solid #d28a00!important;
  background:linear-gradient(180deg,#fffdf9 0%,#fff8ee 100%)!important;
  box-shadow:0 18px 52px rgba(132,87,17,.15)!important;
}
body.scwms-page .scwms-sale-toast.is-after-cutoff::before{
  background:radial-gradient(circle at top right, rgba(210,138,0,.10), transparent 36%)!important;
}
body.scwms-page .scwms-sale-toast.is-after-cutoff .scwms-sale-toast-icon{
  background:linear-gradient(180deg,#d28a00 0%,#b87400 100%)!important;
  box-shadow:0 10px 24px rgba(210,138,0,.18)!important;
}
body.scwms-page .scwms-sale-toast.is-after-cutoff .scwms-sale-toast-topline i{
  background:#fdf1d8!important;
  color:#9a6100!important;
}
body.scwms-page .scwms-sale-toast.is-after-cutoff b{color:#7f5100!important}
body.scwms-page .scwms-sale-toast.is-after-cutoff>em{
  background:linear-gradient(180deg,#d28a00 0%,#b87400 100%)!important;
  color:#fff!important;
}

/* ===== origen: wms-0916-colectas.css ===== */
/* Smartclick WMS v0.9.16 · detalle de Colectas */
body.scwms-page .scwms-collecta-view-btn{
  width:100%;
  min-height:42px;
  margin:-2px 0 14px;
  border:1px solid #e4b44a;
  border-radius:13px;
  background:#fffaf0;
  color:#9a6700;
  font:800 13px/1 "Inter",sans-serif;
  cursor:pointer;
  transition:.18s ease;
}
body.scwms-page .scwms-collecta-view-btn:hover{background:#fff3d6;border-color:#d99a10;transform:translateY(-1px)}
body.scwms-page .scwms-collecta-modal{z-index:150}
body.scwms-page .scwms-collecta-modal-card{
  width:min(760px,100%);
  max-height:min(84vh,760px);
  overflow:auto;
  padding:28px;
  border-radius:22px;
}
body.scwms-page .scwms-collecta-modal-eyebrow{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  background:#fff4d6;
  color:#9a6700;
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
}
body.scwms-page .scwms-collecta-modal-card h2{margin:12px 0 5px;font-size:26px}
body.scwms-page .scwms-collecta-modal-card .scwms-collecta-modal-copy{margin:0 0 18px;font-size:14px!important;line-height:1.45;color:#6d7682}
body.scwms-page .scwms-collecta-list{display:grid;gap:12px}
body.scwms-page .scwms-collecta-loading,
body.scwms-page .scwms-collecta-empty{
  min-height:150px;
  border:1px dashed #d9dde3;
  border-radius:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:22px;
  color:#717b87;
}
body.scwms-page .scwms-collecta-empty b{font-size:16px;color:#1b2430;margin-bottom:5px}
body.scwms-page .scwms-collecta-empty span{font-size:13px}
body.scwms-page .scwms-collecta-item{
  border:1px solid #e1e5ea;
  border-radius:17px;
  padding:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(24,31,42,.05);
}
body.scwms-page .scwms-collecta-item header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
body.scwms-page .scwms-collecta-item header small{display:block;font-size:11px;font-weight:900;color:#9a6700;letter-spacing:.04em}
body.scwms-page .scwms-collecta-item header h3{margin:4px 0 0;font-size:22px;color:#171e28}
body.scwms-page .scwms-collecta-item header strong{padding:8px 11px;border-radius:999px;background:#fff4d6;color:#8d6100;font-size:12px;white-space:nowrap}
body.scwms-page .scwms-collecta-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
body.scwms-page .scwms-collecta-meta>div{padding:12px;border-radius:13px;background:#f7f8fa;min-width:0}
body.scwms-page .scwms-collecta-meta small{display:block;font-size:10px;font-weight:800;text-transform:uppercase;color:#7b8490}
body.scwms-page .scwms-collecta-meta b{display:block;margin-top:4px;font-size:14px;color:#202833;overflow-wrap:anywhere}
body.scwms-page .scwms-collecta-flags{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
body.scwms-page .scwms-collecta-flags span{padding:6px 9px;border-radius:999px;background:#eef2f6;color:#55606d;font-size:11px;font-weight:700}
@media(max-width:680px){
  body.scwms-page .scwms-collecta-modal-card{padding:22px 16px}
  body.scwms-page .scwms-collecta-meta{grid-template-columns:1fr}
  body.scwms-page .scwms-collecta-item header{flex-direction:column}
}

/* ===== origen: wms-0917-colectas-apb.css ===== */
/* Smartclick WMS v0.9.17 · Colectas APB */
body.scwms-page .scwms-collecta-item.is-single{
  border-color:#e1c26f;
  background:linear-gradient(180deg,#fffdf7 0%,#ffffff 100%);
}
body.scwms-page .scwms-collecta-item header small{
  line-height:1.25;
}
body.scwms-page .scwms-collecta-item header h3{
  max-width:560px;
  line-height:1.15;
}
body.scwms-page .scwms-collecta-clear-note{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:14px 16px;
  border:1px solid #bfe3cb;
  border-radius:14px;
  background:#f2fbf5;
}
body.scwms-page .scwms-collecta-clear-note b{
  color:#16733a;
  font-size:14px;
}
body.scwms-page .scwms-collecta-clear-note span{
  color:#52685a;
  font-size:13px;
  line-height:1.35;
}

/* ===== origen: wms-0910-dispatch-polish.css ===== */
/* v0.9.10 · Despacho más ordenado, centrado y con cabecera de actualización */
body.scwms-page .scwms-dispatch-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  flex-wrap:wrap;
}
body.scwms-page .scwms-dispatch-sync-chip{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  min-height:54px;
  border:1px solid #e3e6eb;
  border-radius:16px;
  background:#fff;
  box-shadow:0 14px 34px rgba(23,30,41,.06);
  color:#5f6975;
}
body.scwms-page .scwms-dispatch-sync-chip i{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#fff1f2;
  color:#d32027;
  flex:0 0 auto;
}
body.scwms-page .scwms-dispatch-sync-chip .scwms-icon{width:18px;height:18px}
body.scwms-page .scwms-dispatch-sync-chip span{display:flex;flex-direction:column;gap:2px}
body.scwms-page .scwms-dispatch-sync-chip b{
  font-size:14px;
  line-height:1.15;
  color:#232a34;
}
body.scwms-page .scwms-dispatch-sync-chip small{
  font-size:12px;
  color:#788291;
}
body.scwms-page .scwms-dispatch-head-btn{
  min-height:54px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 24px;
  border-radius:16px;
  box-shadow:0 14px 34px rgba(211,32,39,.22);
}
body.scwms-page .scwms-dispatch-day-kpis-v2{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:stretch;
}
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi{
  position:relative;
  min-height:190px;
  padding:24px 20px 22px;
  border-radius:22px;
  border:1px solid #e4e6eb;
  box-shadow:0 18px 38px rgba(24,31,42,.07);
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
  gap:14px;
  overflow:hidden;
  background:linear-gradient(180deg,#ffffff 0%,#fbfbfc 100%);
}
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi:before{
  content:'';
  position:absolute;
  left:0;right:0;top:0;
  height:5px;
  background:linear-gradient(90deg,#f7d9dc 0%,#d32027 100%);
  opacity:.9;
}
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi-icon{
  width:62px;
  height:62px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:#fff1f2;
  color:#d32027;
  box-shadow:inset 0 0 0 1px rgba(211,32,39,.08);
}
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi-icon .scwms-icon{width:28px;height:28px}
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi>div{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
}
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi small{
  min-height:46px;
  margin:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  font-size:13px!important;
  line-height:1.25;
  text-transform:uppercase;
  letter-spacing:.02em;
  color:#5d6570!important;
}
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi strong{
  margin:10px 0 10px;
  font-size:54px!important;
  line-height:.95;
  letter-spacing:-1.6px;
  color:#121923;
}
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi em{
  min-height:42px;
  max-width:170px;
  font-size:14px!important;
  line-height:1.35;
  color:#778190!important;
}
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi.danger{
  background:linear-gradient(180deg,#fffdfa 0%,#ffffff 100%);
}
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi.danger strong{color:#d18400}
body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi.danger .scwms-kpi-icon{background:#fff6e4;color:#d18400}
body.scwms-page .scwms-dispatch-status-explain{
  margin:14px 0 18px;
  padding:14px 16px;
  border-radius:16px;
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:0 10px 28px rgba(22,29,39,.05);
  display:flex;
  gap:18px;
  align-items:flex-start;
  flex-wrap:wrap;
  color:#5f6874;
}
body.scwms-page .scwms-dispatch-status-explain b,
body.scwms-page .scwms-dispatch-status-explain strong{color:#1d2530}
body.scwms-page .scwms-cutoff-grid{gap:18px}
body.scwms-page .scwms-cutoff-card{
  border-radius:20px;
  padding:22px;
  box-shadow:0 18px 38px rgba(24,31,42,.07);
}
body.scwms-page .scwms-cutoff-card>header{align-items:flex-start}
body.scwms-page .scwms-cutoff-status,
body.scwms-page .scwms-cutoff-badge{font-size:12px;padding:8px 12px}
body.scwms-page .scwms-cutoff-name h3{font-size:24px;line-height:1.05}
body.scwms-page .scwms-cutoff-name small{font-size:13px;line-height:1.3}
body.scwms-page .scwms-cutoff-countdown{font-size:48px;margin:18px 0 6px}
body.scwms-page .scwms-cutoff-caption{min-height:38px;font-size:13px;line-height:1.4}
body.scwms-page .scwms-cutoff-stats{gap:12px}
body.scwms-page .scwms-cutoff-stats>div{padding:13px 10px;border-radius:14px}
body.scwms-page .scwms-cutoff-stats small{font-size:11px}
body.scwms-page .scwms-cutoff-stats b{font-size:22px}
body.scwms-page .scwms-dispatch-cutoff-note{margin-top:10px;font-size:13px;line-height:1.4}

@media(max-width:1500px){
  body.scwms-page .scwms-dispatch-day-kpis-v2{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:1000px){
  body.scwms-page .scwms-dispatch-head-actions{justify-content:flex-start}
  body.scwms-page .scwms-dispatch-day-kpis-v2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px){
  body.scwms-page .scwms-dispatch-sync-chip,
  body.scwms-page .scwms-dispatch-head-btn{width:100%}
  body.scwms-page .scwms-dispatch-day-kpis-v2{grid-template-columns:1fr!important}
  body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi{min-height:170px}
  body.scwms-page .scwms-dispatch-day-kpis-v2 .scwms-kpi strong{font-size:46px!important}
  body.scwms-page .scwms-dispatch-status-explain{flex-direction:column;gap:10px}
}

/* ===== origen: wms-0921-order-detail.css ===== */
body.scwms-page .scwms-order-detail-card{width:min(1100px,100%);max-height:min(88vh,920px);overflow:auto;padding:28px 28px 24px;border-radius:24px} 
body.scwms-page .scwms-order-detail-eyebrow{display:inline-flex;align-items:center;gap:8px;background:#f8eee3;color:#a96f00;border-radius:999px;padding:10px 14px;font-size:13px;font-weight:800;letter-spacing:.04em} 
body.scwms-page .scwms-order-detail-card h2{font-size:22px;line-height:1.15;margin:14px 0 6px;color:var(--sc-text)}
body.scwms-page .scwms-order-detail-subtitle{font-size:14px;color:var(--sc-muted);margin:0 0 18px}
body.scwms-page .scwms-order-detail-body{display:grid;gap:16px}
body.scwms-page .scwms-order-detail-loading{padding:24px;border:1px dashed var(--sc-border);border-radius:18px;text-align:center;color:var(--sc-muted);font-weight:700}
body.scwms-page .scwms-order-detail-top{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body.scwms-page .scwms-order-detail-fact{background:#fafbfc;border:1px solid var(--sc-border);border-radius:18px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;min-height:84px}
body.scwms-page .scwms-order-detail-fact small{font-size:12px;font-weight:700;color:var(--sc-muted);text-transform:uppercase;letter-spacing:.03em}
body.scwms-page .scwms-order-detail-fact b{font-size:17px;line-height:1.2;color:var(--sc-text)}
body.scwms-page .scwms-order-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.scwms-page .scwms-order-detail-section{background:#fff;border:1px solid var(--sc-border);border-radius:20px;padding:18px}
body.scwms-page .scwms-order-detail-section h3{margin:0 0 12px;font-size:18px;color:var(--sc-text)}
body.scwms-page .scwms-order-detail-list{display:grid;gap:10px}
body.scwms-page .scwms-order-detail-row{display:grid;grid-template-columns:180px 1fr;gap:12px;padding-bottom:10px;border-bottom:1px solid rgba(15,23,42,.08)}
body.scwms-page .scwms-order-detail-row:last-child{padding-bottom:0;border-bottom:0}
body.scwms-page .scwms-order-detail-row small{font-size:12px;font-weight:700;color:var(--sc-muted);text-transform:uppercase;letter-spacing:.03em}
body.scwms-page .scwms-order-detail-row b, body.scwms-page .scwms-order-detail-row span{font-size:15px;line-height:1.4;color:var(--sc-text);word-break:break-word}
body.scwms-page .scwms-order-detail-items{overflow:auto}
body.scwms-page .scwms-order-detail-items table{width:100%;border-collapse:collapse}
body.scwms-page .scwms-order-detail-items th, body.scwms-page .scwms-order-detail-items td{padding:12px 10px;border-bottom:1px solid rgba(15,23,42,.08);font-size:14px;vertical-align:top;text-align:left}
body.scwms-page .scwms-order-detail-items th{font-size:12px;color:var(--sc-muted);text-transform:uppercase;letter-spacing:.03em}
body.scwms-page .scwms-order-detail-items td small{display:block;margin-top:4px;color:var(--sc-muted)}
body.scwms-page .scwms-order-detail-timeline{display:grid;gap:10px}
body.scwms-page .scwms-order-detail-timeline-row{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid rgba(15,23,42,.08)}
body.scwms-page .scwms-order-detail-timeline-row:last-child{border-bottom:0;padding-bottom:0}
body.scwms-page .scwms-order-detail-timeline-row time{font-size:13px;font-weight:700;color:var(--sc-muted)}
body.scwms-page .scwms-order-detail-timeline-row b{display:block;font-size:15px;color:var(--sc-text)}
body.scwms-page .scwms-order-detail-timeline-row small{display:block;font-size:13px;color:var(--sc-muted);margin-top:4px}
body.scwms-page .scwms-order-detail-empty{padding:16px;border:1px dashed var(--sc-border);border-radius:16px;background:#fbfcfd;color:var(--sc-muted);font-weight:700;text-align:center}
body.scwms-page .scwms-link-btn{border:0;background:transparent;padding:0;font:inherit;font-weight:800;color:var(--sc-text);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
body.scwms-page .scwms-link-btn:hover{color:#b01218}
@media (max-width: 980px){body.scwms-page .scwms-order-detail-top{grid-template-columns:repeat(2,minmax(0,1fr))}body.scwms-page .scwms-order-detail-grid{grid-template-columns:1fr}}
@media (max-width: 640px){body.scwms-page .scwms-order-detail-card{padding:18px 16px 16px;max-height:92vh;border-radius:20px}body.scwms-page .scwms-order-detail-top{grid-template-columns:1fr}body.scwms-page .scwms-order-detail-row,body.scwms-page .scwms-order-detail-timeline-row{grid-template-columns:1fr;gap:6px}}

/* ===== origen: wms-0923-unified-orders.css ===== */
/* v0.9.23 · Ventas + Pedidos en una sola pantalla */
body.scwms-page .scwms-unified-order-kpis{margin-bottom:18px}
body.scwms-page .scwms-unified-orders-toolbar{align-items:center;gap:14px;flex-wrap:wrap}
body.scwms-page .scwms-unified-orders-left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
body.scwms-page .scwms-orders-logistic-filter{padding-left:12px;border-left:1px solid #dfe3e8}
body.scwms-page .scwms-unified-orders-toolbar .scwms-local-search{min-width:340px;flex:1 1 420px}
body.scwms-page .scwms-orders-table-panel .is-new-sale{animation:scwmsUnifiedNewSale 8s ease both}
body.scwms-page .scwms-orders-table-panel .is-new-sale td{transition:background-color .3s ease}
@keyframes scwmsUnifiedNewSale{0%,55%{background:#fff7dc}100%{background:transparent}}
@media(max-width:900px){
  body.scwms-page .scwms-unified-orders-left{width:100%}
  body.scwms-page .scwms-orders-logistic-filter{padding-left:0;border-left:0}
  body.scwms-page .scwms-unified-orders-toolbar .scwms-local-search{min-width:100%;width:100%}
}

/* ===== origen: wms-0924-unified-polish.css ===== */
/* v0.9.24 · Pedidos unificado: controles claros + número de venta legible */
body.scwms-page .scwms-unified-orders-toolbar{
  display:grid!important;
  grid-template-columns:auto auto minmax(360px,1fr) auto!important;
  align-items:end!important;
  gap:16px!important;
  padding:2px 0 16px!important;
  flex-wrap:nowrap!important;
}
body.scwms-page .scwms-orders-control-group{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:7px!important;
  min-width:max-content!important;
}
body.scwms-page .scwms-orders-control-label{
  display:block!important;
  margin:0 0 0 2px!important;
  color:#777f8b!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.055em!important;
}
body.scwms-page .scwms-unified-orders-toolbar .scwms-view-chips{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  flex-wrap:nowrap!important;
}
body.scwms-page .scwms-unified-orders-toolbar .scwms-view-chips button{
  min-height:40px!important;
  padding:0 16px!important;
  border-radius:13px!important;
  font-size:12px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
body.scwms-page .scwms-orders-logistic-filter{
  padding-left:0!important;
  border-left:0!important;
}
body.scwms-page .scwms-orders-main-search{
  align-self:end!important;
  min-width:0!important;
  width:100%!important;
  height:42px!important;
  margin:0!important;
}
body.scwms-page .scwms-orders-main-search input{
  height:42px!important;
  font-size:14px!important;
}
body.scwms-page .scwms-orders-auto-state{
  align-self:end!important;
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
}
body.scwms-page .scwms-orders-auto-state .scwms-auto-sync-state{
  min-height:42px!important;
  display:inline-flex!important;
  align-items:center!important;
  white-space:nowrap!important;
}

/* El número de venta es un enlace, no un mini botón. */
body.scwms-page .scwms-orders-table-panel .scwms-link-btn{
  display:inline-block!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#101722!important;
  font-family:'Inter',sans-serif!important;
  font-size:14px!important;
  line-height:1.35!important;
  font-weight:800!important;
  letter-spacing:0!important;
  text-align:left!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
body.scwms-page .scwms-orders-table-panel .scwms-link-btn:hover{
  color:#b61926!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
}
body.scwms-page .scwms-orders-table-panel .scwms-table td:first-child{
  min-width:155px!important;
}

@media(max-width:1260px){
  body.scwms-page .scwms-unified-orders-toolbar{
    grid-template-columns:auto auto 1fr!important;
  }
  body.scwms-page .scwms-orders-auto-state{
    grid-column:1 / -1!important;
    justify-content:flex-end!important;
    min-height:auto!important;
  }
}
@media(max-width:900px){
  body.scwms-page .scwms-unified-orders-toolbar{
    grid-template-columns:1fr 1fr!important;
    align-items:start!important;
  }
  body.scwms-page .scwms-orders-main-search{
    grid-column:1 / -1!important;
  }
  body.scwms-page .scwms-orders-auto-state{
    grid-column:1 / -1!important;
    justify-content:flex-start!important;
  }
}
@media(max-width:600px){
  body.scwms-page .scwms-unified-orders-toolbar{grid-template-columns:1fr!important}
  body.scwms-page .scwms-orders-control-group,
  body.scwms-page .scwms-orders-main-search,
  body.scwms-page .scwms-orders-auto-state{grid-column:1!important;width:100%!important}
  body.scwms-page .scwms-unified-orders-toolbar .scwms-view-chips{width:100%!important}
  body.scwms-page .scwms-unified-orders-toolbar .scwms-view-chips button{flex:1 1 auto!important}
}


/* v0.10.76: Pedidos — disposición real (esta hoja carga DESPUÉS de wms.css).
   Los tres filtros ocupan la primera fila; el buscador ancho tiene su propia
   fila y el estado automático queda a la derecha. Evita la quinta celda
   implícita de la grilla previa que reducía el buscador a ~250 px. */
body.scwms-page .scwms-unified-orders-toolbar{
  display:grid!important;
  grid-template-columns:max-content max-content 220px minmax(0,1fr)!important;
  column-gap:18px!important;
  row-gap:14px!important;
  justify-content:stretch!important;
  align-items:end!important;
  width:100%!important;
}
body.scwms-page .scwms-unified-orders-toolbar .scwms-orders-main-search{
  grid-column:1 / 4!important;
  grid-row:2!important;
  justify-self:start!important;
  width:min(760px,100%)!important;
  max-width:760px!important;
  min-width:0!important;
  flex:none!important;
  margin:0!important;
  box-sizing:border-box!important;
  height:46px!important;
}
body.scwms-page .scwms-unified-orders-toolbar .scwms-orders-main-search input{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:44px!important;
  padding-right:42px!important;
  box-sizing:border-box!important;
}
body.scwms-page .scwms-unified-orders-toolbar .scwms-orders-auto-state{
  grid-column:4!important;
  grid-row:2!important;
  justify-content:flex-end!important;
  padding:0!important;
  min-width:0!important;
}
body.scwms-page .scwms-unified-orders-toolbar .scwms-orders-date-picker-wrap{
  width:220px!important;
  min-width:0!important;
  flex:none!important;
}
/* Sólo una X: se oculta la X nativa del browser, se usa el botón del WMS. */
body.scwms-page input[type="search"]::-webkit-search-cancel-button,
body.scwms-page input[type="search"]::-webkit-search-decoration{
  -webkit-appearance:none!important;
  appearance:none!important;
  display:none!important;
}
@media(max-width:1300px){
  body.scwms-page .scwms-unified-orders-toolbar{
    grid-template-columns:max-content minmax(0,1fr)!important;
  }
  body.scwms-page .scwms-unified-orders-toolbar .scwms-orders-date-picker-wrap{
    grid-column:1!important;
    grid-row:2!important;
  }
  body.scwms-page .scwms-unified-orders-toolbar .scwms-orders-main-search{
    grid-column:1 / -1!important;
    grid-row:3!important;
    width:min(760px,100%)!important;
  }
  body.scwms-page .scwms-unified-orders-toolbar .scwms-orders-auto-state{
    grid-column:1 / -1!important;
    grid-row:4!important;
    justify-content:flex-start!important;
  }
}
@media(max-width:760px){
  body.scwms-page .scwms-unified-orders-toolbar{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.scwms-page .scwms-unified-orders-toolbar .scwms-orders-control-group,
  body.scwms-page .scwms-unified-orders-toolbar .scwms-orders-date-picker-wrap,
  body.scwms-page .scwms-unified-orders-toolbar .scwms-orders-main-search,
  body.scwms-page .scwms-unified-orders-toolbar .scwms-orders-auto-state{
    grid-column:1!important;
    grid-row:auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
  body.scwms-page .scwms-unified-orders-toolbar .scwms-view-chips{flex-wrap:wrap!important}
}

/* ===== origen: wms-0925-order-detail-polish.css ===== */
/* v0.9.25 · detalle de pedido legible, limpio y sin precios */
body.scwms-page .scwms-order-detail-modal{
  padding:24px!important;
  background:rgba(20,23,29,.58)!important;
  backdrop-filter:blur(3px);
}
body.scwms-page .scwms-order-detail-card{
  width:min(1040px,calc(100vw - 48px))!important;
  max-width:1040px!important;
  max-height:90vh!important;
  padding:30px!important;
  overflow:auto!important;
  border:1px solid #e3e6eb!important;
  border-radius:26px!important;
  background:#f8f9fb!important;
  box-shadow:0 32px 90px rgba(17,24,39,.24)!important;
}
body.scwms-page .scwms-order-detail-card .scwms-modal-close{
  position:sticky!important;
  float:right!important;
  top:0!important;
  right:0!important;
  z-index:3!important;
  width:38px!important;
  height:38px!important;
  border-radius:12px!important;
  background:#fff!important;
  border:1px solid #e2e5ea!important;
  color:#69717d!important;
  display:grid!important;
  place-items:center!important;
  font-size:24px!important;
  line-height:1!important;
  box-shadow:0 6px 16px rgba(20,26,36,.06)!important;
}
body.scwms-page .scwms-order-detail-eyebrow{
  padding:8px 11px!important;
  background:#f4e9eb!important;
  color:#9f1b27!important;
  font-size:10px!important;
  letter-spacing:.08em!important;
}
body.scwms-page .scwms-order-detail-card h2{
  margin:12px 48px 4px 0!important;
  font-size:28px!important;
  line-height:1.1!important;
  font-weight:900!important;
}
body.scwms-page .scwms-order-detail-subtitle{
  margin:0 0 22px!important;
  font-size:14px!important;
  line-height:1.45!important;
  color:#707986!important;
}
body.scwms-page .scwms-order-detail-body{gap:18px!important}
body.scwms-page .scwms-order-detail-top{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
body.scwms-page .scwms-order-detail-fact{
  min-height:86px!important;
  padding:15px 16px!important;
  border:1px solid #e4e7ec!important;
  border-radius:17px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(28,35,47,.04)!important;
}
body.scwms-page .scwms-order-detail-fact small{
  margin:0 0 6px!important;
  color:#7b8491!important;
  font-size:10px!important;
  line-height:1.1!important;
  font-weight:800!important;
}
body.scwms-page .scwms-order-detail-fact b{
  font-size:17px!important;
  line-height:1.25!important;
  font-weight:800!important;
  color:#161d27!important;
  overflow-wrap:anywhere!important;
}
body.scwms-page .scwms-order-detail-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
}
body.scwms-page .scwms-order-detail-section{
  padding:20px!important;
  border:1px solid #e4e7ec!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 9px 24px rgba(28,35,47,.035)!important;
  min-width:0!important;
}
body.scwms-page .scwms-order-detail-section h3{
  margin:0 0 16px!important;
  font-size:19px!important;
  line-height:1.2!important;
  font-weight:900!important;
  color:#171e28!important;
}
body.scwms-page .scwms-order-detail-list{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
body.scwms-page .scwms-order-detail-row{
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  min-width:0!important;
  padding:12px 13px!important;
  border:1px solid #edf0f3!important;
  border-radius:13px!important;
  background:#fafbfc!important;
}
body.scwms-page .scwms-order-detail-row:last-child{padding-bottom:12px!important;border-bottom:1px solid #edf0f3!important}
body.scwms-page .scwms-order-detail-row small{
  display:block!important;
  margin:0!important;
  color:#7d8692!important;
  font-size:10px!important;
  line-height:1.15!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  letter-spacing:.045em!important;
}
body.scwms-page .scwms-order-detail-row span{
  display:block!important;
  margin:0!important;
  color:#202733!important;
  font-size:14px!important;
  line-height:1.35!important;
  font-weight:650!important;
  overflow-wrap:anywhere!important;
}
body.scwms-page .scwms-order-detail-empty.compact{
  grid-column:1/-1!important;
  padding:14px!important;
  font-size:13px!important;
}
body.scwms-page .scwms-order-detail-products-section{padding-bottom:12px!important}
body.scwms-page .scwms-order-products{display:grid!important;gap:10px!important}
body.scwms-page .scwms-order-product{
  display:grid!important;
  grid-template-columns:minmax(260px,1.6fr) minmax(390px,1fr)!important;
  gap:18px!important;
  align-items:center!important;
  padding:16px!important;
  border:1px solid #e7eaee!important;
  border-radius:16px!important;
  background:#fafbfc!important;
}
body.scwms-page .scwms-order-product-main{min-width:0!important}
body.scwms-page .scwms-order-product-main>b{
  display:block!important;
  margin:0 0 5px!important;
  font-size:15px!important;
  line-height:1.35!important;
  color:#171e28!important;
  font-weight:850!important;
}
body.scwms-page .scwms-order-product-main>small{
  display:block!important;
  margin:2px 0 0!important;
  color:#77808d!important;
  font-size:12px!important;
  line-height:1.3!important;
  overflow-wrap:anywhere!important;
}
body.scwms-page .scwms-order-product-meta{
  display:grid!important;
  grid-template-columns:minmax(140px,1.6fr) repeat(3,minmax(74px,.7fr))!important;
  gap:9px!important;
}
body.scwms-page .scwms-order-product-meta>span{
  min-width:0!important;
  padding:10px!important;
  border:1px solid #edf0f3!important;
  border-radius:11px!important;
  background:#fff!important;
}
body.scwms-page .scwms-order-product-meta small{
  display:block!important;
  margin-bottom:4px!important;
  color:#818995!important;
  font-size:9px!important;
  line-height:1.1!important;
  font-weight:800!important;
  text-transform:uppercase!important;
}
body.scwms-page .scwms-order-product-meta b{
  display:block!important;
  color:#202733!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:800!important;
  overflow-wrap:anywhere!important;
}
body.scwms-page .scwms-order-detail-timeline{gap:0!important}
body.scwms-page .scwms-order-detail-timeline-row{
  grid-template-columns:145px minmax(0,1fr)!important;
  gap:16px!important;
  padding:13px 4px!important;
}
body.scwms-page .scwms-order-detail-timeline-row time{font-size:12px!important}
body.scwms-page .scwms-order-detail-timeline-row b{font-size:14px!important}
body.scwms-page .scwms-order-detail-timeline-row small{font-size:12px!important;line-height:1.35!important}

@media(max-width:900px){
  body.scwms-page .scwms-order-detail-top{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.scwms-page .scwms-order-detail-grid{grid-template-columns:1fr!important}
  body.scwms-page .scwms-order-product{grid-template-columns:1fr!important}
  body.scwms-page .scwms-order-product-meta{grid-template-columns:minmax(140px,1.6fr) repeat(3,minmax(70px,1fr))!important}
}
@media(max-width:620px){
  body.scwms-page .scwms-order-detail-modal{padding:8px!important}
  body.scwms-page .scwms-order-detail-card{width:100%!important;max-height:96vh!important;padding:20px 15px!important;border-radius:20px!important}
  body.scwms-page .scwms-order-detail-card h2{font-size:23px!important}
  body.scwms-page .scwms-order-detail-top{grid-template-columns:1fr!important}
  body.scwms-page .scwms-order-detail-list{grid-template-columns:1fr!important}
  body.scwms-page .scwms-order-product-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.scwms-page .scwms-order-detail-timeline-row{grid-template-columns:1fr!important;gap:4px!important}
}

/* ===== origen: wms-0932-order-product-photo.css ===== */
/* Smartclick WMS v0.9.32 · foto de producto en el detalle del pedido */
body.scwms-page .scwms-order-product{
  grid-template-columns:92px minmax(250px,1.45fr) minmax(390px,1fr)!important;
}
body.scwms-page .scwms-order-product-photo{
  width:92px;
  height:92px;
  border-radius:15px;
  border:1px solid #e4e8ed;
  background:#fff;
  display:grid;
  place-items:center;
  overflow:hidden;
  flex:0 0 auto;
  box-shadow:0 8px 20px rgba(28,35,45,.05);
}
body.scwms-page .scwms-order-product-photo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  padding:7px;
  box-sizing:border-box;
}
body.scwms-page .scwms-order-product-photo>span{
  display:none;
  font-size:28px;
  opacity:.55;
}
body.scwms-page .scwms-order-product-photo.is-missing{
  background:#f5f7f9;
}
body.scwms-page .scwms-order-product-photo.is-missing>span{display:block}
@media(max-width:1050px){
  body.scwms-page .scwms-order-product{
    grid-template-columns:82px minmax(0,1fr)!important;
  }
  body.scwms-page .scwms-order-product-photo{width:82px;height:82px;grid-row:1}
  body.scwms-page .scwms-order-product-main{grid-column:2;grid-row:1}
  body.scwms-page .scwms-order-product-meta{grid-column:1/-1;grid-row:2}
}
@media(max-width:640px){
  body.scwms-page .scwms-order-product{grid-template-columns:72px minmax(0,1fr)!important;gap:12px!important}
  body.scwms-page .scwms-order-product-photo{width:72px;height:72px;border-radius:13px}
  body.scwms-page .scwms-order-product-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ===== origen: wms-0934-toast-close.css ===== */
/* v0.9.34 · cerrar alerta flotante y evitar superposición */
body.scwms-page .scwms-sale-toast{
  grid-template-columns:54px minmax(0,1fr) auto!important;
  cursor:pointer!important;
}
body.scwms-page .scwms-sale-toast-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  position:relative!important;
  z-index:2!important;
}
body.scwms-page .scwms-sale-toast-view{
  min-height:34px!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,#b71d2a 0%,#9f1722 100%)!important;
  color:#fff!important;
  font-family:inherit!important;
  font-size:9.5px!important;
  font-weight:900!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  box-shadow:0 8px 18px rgba(183,29,42,.14)!important;
}
body.scwms-page .scwms-sale-toast-close{
  width:32px!important;
  height:32px!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 auto!important;
  padding:0!important;
  border:1px solid #eadfe1!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#7c6870!important;
  font-family:inherit!important;
  font-size:20px!important;
  font-weight:600!important;
  line-height:1!important;
  cursor:pointer!important;
  box-shadow:0 4px 12px rgba(50,23,28,.06)!important;
}
body.scwms-page .scwms-sale-toast-close:hover{background:#f9f4f5!important;color:#a31824!important;border-color:#e5cfd3!important}
body.scwms-page .scwms-sale-toast>em{display:none!important}
body.scwms-page .scwms-sale-toast.is-cancelled .scwms-sale-toast-view{background:linear-gradient(180deg,#b91524 0%,#98111d 100%)!important}
body.scwms-page .scwms-sale-toast.is-after-cutoff .scwms-sale-toast-view{background:linear-gradient(180deg,#d28a00 0%,#b87400 100%)!important}
@media(max-width:640px){
  body.scwms-page .scwms-sale-toast{grid-template-columns:46px minmax(0,1fr)!important;padding-right:12px!important}
  body.scwms-page .scwms-sale-toast-actions{grid-column:2!important;justify-content:flex-start!important;margin-top:5px!important}
  body.scwms-page .scwms-sale-toast-view{min-height:30px!important}
  body.scwms-page .scwms-sale-toast-close{width:30px!important;height:30px!important}
}

/* ===== origen: wms-0935-dispatch-stats-align.css ===== */
/* Smartclick WMS v0.9.35 · Alineación de métricas Flex / Colecta */
body.scwms-page .scwms-cutoff-grid{align-items:stretch}
body.scwms-page .scwms-cutoff-card{display:flex;flex-direction:column;height:100%}
body.scwms-page #dispatch-flex-card .scwms-cutoff-stats{margin-top:auto}
body.scwms-page #dispatch-colecta-card .scwms-collecta-view-btn{margin-top:auto;margin-bottom:14px}
body.scwms-page #dispatch-colecta-card .scwms-cutoff-stats{margin-top:0}
body.scwms-page .scwms-cutoff-stats{width:100%;align-items:stretch}
body.scwms-page .scwms-cutoff-stats>div{min-height:88px;display:flex;flex-direction:column;align-items:center;justify-content:center}

/* ===== origen: wms-0937-order-stability.css ===== */
/* Smartclick WMS v0.9.37 · identificadores en una sola línea */
body.scwms-page .scwms-order-detail-fact b{
  white-space:nowrap;
  line-height:1.15;
}
body.scwms-page .scwms-order-detail-fact{
  min-width:0;
}
body.scwms-page .scwms-order-detail-fact b{
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:15px;
}
body.scwms-page .scwms-order-detail-fact:hover b{
  overflow:visible;
  text-overflow:clip;
}

/* ===== origen: wms-0939-stability-stock.css ===== */
/* Smartclick WMS v0.9.39 · detalle estable + identificadores completos */
body.scwms-page .scwms-order-detail-fact b{
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-size:clamp(11.5px,.85vw,14px)!important;
  line-height:1.16!important;
  letter-spacing:-.015em!important;
}
body.scwms-page .scwms-order-detail-fact:hover b{
  overflow:visible!important;
}
body.scwms-page .scwms-order-detail-top{
  gap:12px!important;
}
body.scwms-page .scwms-order-detail-fact{
  min-width:0!important;
  padding-left:14px!important;
  padding-right:14px!important;
}
/* Inicio: el ancho de Producto/Unidades queda fijo; actualizar texto no mueve columnas. */
body.scwms-page .scwms-home-table{
  table-layout:fixed!important;
  width:100%!important;
}
body.scwms-page .scwms-home-table th:nth-child(1),body.scwms-page .scwms-home-table td:nth-child(1){width:15%!important}
body.scwms-page .scwms-home-table th:nth-child(2),body.scwms-page .scwms-home-table td:nth-child(2){width:31%!important}
body.scwms-page .scwms-home-table th:nth-child(3),body.scwms-page .scwms-home-table td:nth-child(3){width:8%!important}
body.scwms-page .scwms-home-table th:nth-child(4),body.scwms-page .scwms-home-table td:nth-child(4){width:20%!important}
body.scwms-page .scwms-home-table th:nth-child(5),body.scwms-page .scwms-home-table td:nth-child(5){width:13%!important}
body.scwms-page .scwms-home-table th:nth-child(6),body.scwms-page .scwms-home-table td:nth-child(6){width:13%!important}

/* ===== origen: wms-0957-notification-simplify.css ===== */
/* Smartclick WMS v0.9.57 · notificaciones simples: campana + avisos flotantes */
body.scwms-page .scwms-sale-notification-panel{display:none!important}
body.scwms-page .scwms-sale-bell{cursor:pointer!important}
body.scwms-page .scwms-sale-toast{
  position:fixed!important;
  top:18px!important;
  right:18px!important;
  bottom:auto!important;
  z-index:99999!important;
}
body.scwms-page .scwms-sale-toast.is-cancelled{
  top:18px!important;
  right:18px!important;
  width:min(500px,calc(100vw - 36px))!important;
  border-left-width:6px!important;
}
body.scwms-page .scwms-sale-toast.is-cancelled .scwms-sale-toast-topline i{font-weight:950!important}
body.scwms-page .scwms-sale-toast.is-cancelled #scwms-sale-toast-title{font-size:16px!important;font-weight:950!important}
@media(max-width:640px){
  body.scwms-page .scwms-sale-toast,
  body.scwms-page .scwms-sale-toast.is-cancelled{top:12px!important;right:12px!important;width:calc(100vw - 24px)!important}
}

/* ===== origen: wms-0958-toast-only.css ===== */
/* Smartclick WMS v0.9.58 · sólo avisos flotantes, sin campanas */
body.scwms-page .scwms-sale-bell,
body.scwms-page .scwms-notification,
body.scwms-page .scwms-sale-notification-panel{display:none!important}

/* Venta nueva / cancelación: esquina superior derecha. */
body.scwms-page .scwms-sale-toast{
  position:fixed!important;
  top:18px!important;
  right:18px!important;
  left:auto!important;
  bottom:auto!important;
  z-index:99999!important;
}

/* Alerta de corte: esquina superior izquierda. */
body.scwms-page .scwms-sale-toast.is-after-cutoff{
  top:18px!important;
  left:18px!important;
  right:auto!important;
  bottom:auto!important;
  width:min(500px,calc(100vw - 36px))!important;
}

body.scwms-page .scwms-sale-toast.is-cancelled{
  top:18px!important;
  right:18px!important;
  left:auto!important;
  width:min(500px,calc(100vw - 36px))!important;
}

@media(max-width:640px){
  body.scwms-page .scwms-sale-toast,
  body.scwms-page .scwms-sale-toast.is-cancelled,
  body.scwms-page .scwms-sale-toast.is-after-cutoff{
    top:12px!important;
    left:12px!important;
    right:12px!important;
    width:auto!important;
  }
}

/* ===== origen: wms-0959-minimal-toast-silent.css ===== */
/* Smartclick WMS v0.9.59 · avisos minimalistas + sonido sólo en cancelación */
body.scwms-page .scwms-sale-toast{
  width:min(430px,calc(100vw - 36px))!important;
  grid-template-columns:40px minmax(0,1fr) auto!important;
  gap:10px!important;
  padding:11px 12px!important;
  border:1px solid #e8e3e4!important;
  border-left:1px solid #e8e3e4!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 12px 32px rgba(35,27,29,.10)!important;
}
body.scwms-page .scwms-sale-toast::before,
body.scwms-page .scwms-sale-toast::after{display:none!important;content:none!important}
body.scwms-page .scwms-sale-toast-icon{
  width:40px!important;height:40px!important;
  border-radius:12px!important;
  background:#b71d2a!important;
  box-shadow:none!important;
}
body.scwms-page .scwms-sale-toast-icon .scwms-icon{width:19px!important;height:19px!important;stroke-width:2!important}
body.scwms-page .scwms-sale-toast-content{gap:1px!important}
body.scwms-page .scwms-sale-toast-topline{gap:5px!important;margin:0 0 1px!important}
body.scwms-page .scwms-sale-toast-topline strong{display:none!important}
body.scwms-page .scwms-sale-toast-topline i{
  min-height:17px!important;
  padding:0 6px!important;
  border-radius:999px!important;
  background:#f7edef!important;
  color:#a71927!important;
  font-size:7.5px!important;
  line-height:17px!important;
  font-weight:900!important;
  letter-spacing:.035em!important;
}
body.scwms-page .scwms-sale-toast b{
  font-size:14px!important;
  line-height:1.18!important;
  color:#241d1f!important;
  font-weight:850!important;
}
body.scwms-page .scwms-sale-toast small{
  margin-top:2px!important;
  font-size:10.5px!important;
  line-height:1.25!important;
  color:#81777a!important;
}
body.scwms-page .scwms-sale-toast-actions{gap:6px!important}
body.scwms-page .scwms-sale-toast-view{
  min-height:31px!important;
  padding:0 10px!important;
  border:1px solid #e5d8da!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#9e1723!important;
  box-shadow:none!important;
  font-size:9px!important;
  font-weight:850!important;
}
body.scwms-page .scwms-sale-toast-view:hover{background:#fbf6f7!important;border-color:#dcbec3!important}
body.scwms-page .scwms-sale-toast-close{
  width:29px!important;height:29px!important;
  border:0!important;
  border-radius:9px!important;
  background:#f7f5f5!important;
  color:#8a8083!important;
  box-shadow:none!important;
  font-size:18px!important;
}
body.scwms-page .scwms-sale-toast-close:hover{background:#f0ebec!important;color:#a71927!important}

/* Cancelación: sigue siendo muy visible, pero sin bloque rojo pesado. */
body.scwms-page .scwms-sale-toast.is-cancelled{
  border:1px solid #e8c9ce!important;
  border-left:3px solid #b71d2a!important;
  background:#fff!important;
  box-shadow:0 14px 36px rgba(133,21,31,.13)!important;
}
body.scwms-page .scwms-sale-toast.is-cancelled .scwms-sale-toast-icon{background:#a91522!important}
body.scwms-page .scwms-sale-toast.is-cancelled b{color:#8e101b!important}
body.scwms-page .scwms-sale-toast.is-cancelled .scwms-sale-toast-view{
  background:#a91522!important;color:#fff!important;border-color:#a91522!important;
}

/* Corte: ámbar sutil, arriba a la izquierda por la regla de v0.9.58. */
body.scwms-page .scwms-sale-toast.is-after-cutoff{
  border:1px solid #ead8b8!important;
  border-left:3px solid #c88400!important;
  background:#fff!important;
  box-shadow:0 14px 34px rgba(128,89,18,.11)!important;
}
body.scwms-page .scwms-sale-toast.is-after-cutoff .scwms-sale-toast-icon{background:#c88400!important}
body.scwms-page .scwms-sale-toast.is-after-cutoff .scwms-sale-toast-topline i{background:#fbf1df!important;color:#956000!important}
body.scwms-page .scwms-sale-toast.is-after-cutoff b{color:#684500!important}
body.scwms-page .scwms-sale-toast.is-after-cutoff .scwms-sale-toast-view{color:#956000!important;border-color:#e5d1a8!important;background:#fff!important}

@media(max-width:640px){
  body.scwms-page .scwms-sale-toast,
  body.scwms-page .scwms-sale-toast.is-cancelled,
  body.scwms-page .scwms-sale-toast.is-after-cutoff{
    grid-template-columns:38px minmax(0,1fr)!important;
    gap:9px!important;
    padding:10px!important;
  }
  body.scwms-page .scwms-sale-toast-icon{width:38px!important;height:38px!important}
  body.scwms-page .scwms-sale-toast-actions{grid-column:2!important;margin-top:5px!important;justify-content:flex-start!important}
}

/* ===== origen: wms-0961-cancel-toast-left.css ===== */
/* Smartclick WMS v0.9.61 · cancelaciones visibles arriba a la izquierda */
body.scwms-page .scwms-sale-toast.is-cancelled{
  top:18px!important;
  left:18px!important;
  right:auto!important;
  bottom:auto!important;
  width:min(430px,calc(100vw - 36px))!important;
}
@media(max-width:640px){
  body.scwms-page .scwms-sale-toast.is-cancelled{
    top:12px!important;
    left:12px!important;
    right:12px!important;
    width:auto!important;
  }
}

/* ===== origen: wms-0963-cancel-toast-with-sales.css ===== */
/* Smartclick WMS v0.9.63 · cancelaciones en el mismo lugar que ventas nuevas */
body.scwms-page .scwms-sale-toast.is-cancelled{
  top:18px!important;
  right:18px!important;
  left:auto!important;
  bottom:auto!important;
  width:min(430px,calc(100vw - 36px))!important;
}

@media(max-width:640px){
  body.scwms-page .scwms-sale-toast.is-cancelled{
    top:12px!important;
    right:12px!important;
    left:12px!important;
    width:auto!important;
  }
}

/* ===== origen: wms-0964-colectas-live.css ===== */
/* Smartclick WMS v0.9.64 · Colectas en vivo por USER/NODE según Mercado Libre */
body.scwms-page .scwms-collecta-time-label{
  display:block;
  margin-bottom:3px;
  color:#7b8490;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
body.scwms-page .scwms-collecta-item header h3{
  font-size:23px;
  line-height:1.12;
}
body.scwms-page .scwms-collecta-meta:empty{display:none}
body.scwms-page .scwms-collecta-meta>div b{line-height:1.25}
@media(max-width:680px){
  body.scwms-page .scwms-collecta-item header h3{font-size:21px}
}

/* ===== origen: wms-0971-admin-collectas.css ===== */
/* Smartclick WMS v0.9.71 · Administración de colectas */
body.scwms-page .scwms-collecta-admin-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 26px;margin-bottom:18px;background:#fff;border:1px solid var(--sc-border);border-radius:20px;box-shadow:var(--sc-shadow)}
body.scwms-page .scwms-collecta-admin-hero small{font-size:11px;font-weight:900;letter-spacing:.08em;color:#8b5d00}body.scwms-page .scwms-collecta-admin-hero h2{margin:5px 0 5px;font-size:23px}body.scwms-page .scwms-collecta-admin-hero p{margin:0;max-width:760px;color:var(--sc-muted);font-size:13px;line-height:1.5}
body.scwms-page .scwms-collecta-admin-top{align-items:stretch}body.scwms-page .scwms-collecta-admin-controls{display:grid;grid-template-columns:1.2fr .8fr 1fr;gap:12px}body.scwms-page .scwms-collecta-admin-controls label,body.scwms-page .scwms-admin-collecta-fields label{display:grid;gap:6px}body.scwms-page .scwms-collecta-admin-controls label>span,body.scwms-page .scwms-admin-collecta-fields label>span{font-size:11px;font-weight:800;color:#59616d}body.scwms-page .scwms-collecta-admin-controls input,body.scwms-page .scwms-collecta-admin-controls select,body.scwms-page .scwms-admin-collecta-fields input,body.scwms-page .scwms-admin-collecta-fields textarea{width:100%;box-sizing:border-box;border:1px solid #d9dde3;border-radius:10px;background:#fff;padding:11px 12px;font:inherit;color:#20252d;outline:none}body.scwms-page .scwms-collecta-admin-controls input:focus,body.scwms-page .scwms-collecta-admin-controls select:focus,body.scwms-page .scwms-admin-collecta-fields input:focus,body.scwms-page .scwms-admin-collecta-fields textarea:focus{border-color:#bd2831;box-shadow:0 0 0 3px rgba(189,40,49,.08)}
body.scwms-page .scwms-collecta-admin-help{display:grid;align-content:center;gap:8px}body.scwms-page .scwms-admin-step{display:flex;align-items:center;gap:10px;padding:7px 0}body.scwms-page .scwms-admin-step b{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#fff0f1;color:#b31f28;font-size:11px}body.scwms-page .scwms-admin-step span{font-size:12px;color:#59616d}
body.scwms-page .scwms-collecta-admin-warning{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;margin:16px 0;border:1px solid #efb2b6;border-radius:14px;background:#fff2f3;color:#9f1d24}body.scwms-page .scwms-collecta-admin-warning b,body.scwms-page .scwms-collecta-admin-warning span{display:block}body.scwms-page .scwms-collecta-admin-warning span{margin-top:3px;font-size:12px}
body.scwms-page .scwms-collecta-admin-list{display:grid;gap:14px;margin-top:16px}body.scwms-page .scwms-admin-collecta-card{padding:20px}body.scwms-page .scwms-admin-collecta-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}body.scwms-page .scwms-admin-collecta-card>header small{font-weight:900;font-size:10px;color:#8a5c00;letter-spacing:.06em}body.scwms-page .scwms-admin-collecta-card>header h3{margin:4px 0 0;font-size:18px}body.scwms-page .scwms-admin-collecta-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}body.scwms-page .scwms-admin-collecta-fields .scwms-admin-auth{display:flex;align-items:center;gap:8px;padding:11px 12px;border:1px solid #e3e6e9;border-radius:10px;align-self:end}body.scwms-page .scwms-admin-auth input{width:17px!important;height:17px;padding:0!important}body.scwms-page .scwms-admin-auth span{font-size:12px!important}body.scwms-page .scwms-admin-notes{grid-column:1/-1}body.scwms-page .scwms-admin-collecta-card>footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid #eceef1;color:#747d88;font-size:11px}
body.scwms-page .scwms-collecta-admin-footer{position:sticky;bottom:12px;z-index:10;margin-top:18px;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;gap:15px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border:1px solid #e0e3e6;border-radius:16px;box-shadow:0 14px 40px rgba(20,27,36,.12)}body.scwms-page .scwms-collecta-admin-footer div{font-size:11px;color:#6b7480}
body.scwms-page .scwms-reconfirm-float{position:fixed;right:22px;top:22px;z-index:9999;max-width:430px;display:flex;align-items:center;gap:18px;padding:14px 15px 14px 17px;border-radius:15px;background:#fff;border:1px solid #efaaaf;box-shadow:0 18px 55px rgba(68,12,17,.2)}body.scwms-page .scwms-reconfirm-float>div{min-width:0}body.scwms-page .scwms-reconfirm-float b,body.scwms-page .scwms-reconfirm-float span{display:block}body.scwms-page .scwms-reconfirm-float b{font-size:13px;color:#aa1e27}body.scwms-page .scwms-reconfirm-float span{margin-top:3px;font-size:11px;line-height:1.4;color:#626b76}body.scwms-page .scwms-reconfirm-float button{flex:0 0 auto;border:0;border-radius:10px;background:#ba222b;color:#fff;padding:10px 12px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
body.scwms-page .scwms-collecta-flags span:has(+*){}
@media(max-width:900px){body.scwms-page .scwms-collecta-admin-controls,body.scwms-page .scwms-admin-collecta-fields{grid-template-columns:1fr}body.scwms-page .scwms-admin-notes{grid-column:auto}body.scwms-page .scwms-collecta-admin-hero{align-items:flex-start;flex-direction:column}body.scwms-page .scwms-collecta-admin-footer{bottom:8px}body.scwms-page .scwms-reconfirm-float{left:12px;right:12px;top:12px;max-width:none}}

/* v0.9.74 · reconfirmación fija y aviso vacío oculto */
body.scwms-page .scwms-collecta-admin-warning[hidden]{display:none!important}
body.scwms-page .scwms-collecta-auto-reconfirm{display:grid;align-content:center;gap:3px;min-height:48px;padding:10px 12px;border:1px solid #e2e5e9;border-radius:10px;background:#fafbfc}
body.scwms-page .scwms-collecta-auto-reconfirm small{font-size:9px;font-weight:900;letter-spacing:.07em;color:#7b838e}
body.scwms-page .scwms-collecta-auto-reconfirm b{font-size:13px;color:#20252d}
body.scwms-page .scwms-collecta-auto-reconfirm span{font-size:10px;color:#747d88;line-height:1.35}

/* ===== origen: wms-0973-copy-hover.css ===== */
/* v0.9.73 — affordance de cards + copia rápida en Pedidos */
body.scwms-page .scwms-kanban-card[data-board-order]{
  cursor:pointer!important;
  transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease,background .14s ease!important;
}
body.scwms-page .scwms-kanban-card[data-board-order]:hover{
  transform:translateY(-2px);
  border-color:#b8c1cc!important;
  box-shadow:0 9px 22px rgba(20,26,36,.10)!important;
  background:#fff!important;
}
body.scwms-page .scwms-kanban-card[data-board-order]:active{transform:translateY(0)}
body.scwms-page .scwms-order-copy-value{
  display:inline-flex;align-items:center;gap:7px;max-width:100%;vertical-align:middle;
}
body.scwms-page .scwms-order-copy-value strong,
body.scwms-page .scwms-order-copy-value span{
  color:#111827!important;text-decoration:none!important;white-space:nowrap;
}
body.scwms-page .scwms-order-copy-value strong{font-weight:800}
body.scwms-page .scwms-order-copy{
  width:25px!important;height:25px!important;min-width:25px!important;border-radius:7px!important;
  opacity:.72;transition:opacity .12s ease,background .12s ease,border-color .12s ease,color .12s ease!important;
}
body.scwms-page .scwms-order-copy-value:hover .scwms-order-copy{opacity:1}
body.scwms-page .scwms-order-copy.is-copied{opacity:1!important}
@media (max-width:780px){
  body.scwms-page .scwms-order-copy-value{justify-content:flex-start}
}

/* v0.9.76 — copia rápida también en Canceladas */
body.scwms-page .scwms-cancelled-copy-row{
  display:flex;align-items:center;gap:6px;margin-top:5px;
}
body.scwms-page .scwms-cancelled-copy-row .scwms-cancelled-pack{
  display:inline-block!important;margin-top:0!important;
}
body.scwms-page .scwms-cancelled-table .scwms-copy-mini{
  width:25px!important;height:25px!important;min-width:25px!important;border-radius:7px!important;
}


/* v0.9.77 — confirmación visual de copia sin texto */
body.scwms-page .scwms-copy-mini.is-copied,
body.scwms-page .scwms-copy-wide.is-copied{
  color:#16a34a!important;
  border-color:#bbf7d0!important;
  background:#f0fdf4!important;
  animation:scwms-copy-check-pop .18s ease-out;
}
body.scwms-page .scwms-copy-check{
  width:16px;height:16px;display:block;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;
}
body.scwms-page .scwms-copy-wide.is-copied{
  min-width:38px;justify-content:center;
}
@keyframes scwms-copy-check-pop{
  0%{transform:scale(.72)}
  65%{transform:scale(1.12)}
  100%{transform:scale(1)}
}

/* ===== origen: wms-0975-inter.css ===== */
/* v0.9.75 — Inter typography system */
body.scwms-page,
body.scwms-page .scwms-app,
body.scwms-page .scwms-login-shell,
body.scwms-page .scwms-pda-app {
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif!important;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
body.scwms-page .scwms-app button,
body.scwms-page .scwms-app input,
body.scwms-page .scwms-app select,
body.scwms-page .scwms-app textarea,
body.scwms-page .scwms-pda-app button,
body.scwms-page .scwms-pda-app input,
body.scwms-page .scwms-pda-app select,
body.scwms-page .scwms-pda-app textarea,
body.scwms-page .scwms-login-shell button,
body.scwms-page .scwms-login-shell input {
  font-family:inherit!important;
}
/* Sidebar: same clean feel as the admin dashboard reference */
body.scwms-page .scwms-sidebar .scwms-nav-item {
  font-family:'Inter',system-ui,sans-serif!important;
  font-weight:600!important;
  letter-spacing:-.01em;
}
body.scwms-page .scwms-sidebar .scwms-nav-item.is-active {font-weight:700!important;}
body.scwms-page .scwms-sidebar .scwms-nav-section span {
  font-family:'Inter',system-ui,sans-serif!important;
  font-weight:700!important;
  letter-spacing:.09em!important;
}
/* Titles: strong but less bulky than the old typography treatment */
body.scwms-page .scwms-main h1,
body.scwms-page .scwms-main h2,
body.scwms-page .scwms-main h3,
body.scwms-page .scwms-modal h1,
body.scwms-page .scwms-modal h2,
body.scwms-page .scwms-modal h3 {
  font-family:'Inter',system-ui,sans-serif!important;
  text-wrap:balance;
}
body.scwms-page .scwms-main .scwms-page-head h1,
body.scwms-page .scwms-home-heading h1 {font-weight:800!important;letter-spacing:-.035em!important;}
body.scwms-page .scwms-main h2,
body.scwms-page .scwms-main h3 {letter-spacing:-.02em;}
/* Numeric/UI data stays crisp */
body.scwms-page .scwms-kpi-value,
body.scwms-page .scwms-home-kpi strong,
body.scwms-page table td,
body.scwms-page table th {
  font-variant-numeric:tabular-nums;
}

/* ===== origen: wms-0978-history-stability.css ===== */
/* v0.9.78 · Historial: separar ID Envío ME de tracking */
.scwms-history-shipment-id,.scwms-history-tracking{display:flex;align-items:baseline;gap:7px;white-space:nowrap}
.scwms-history-shipment-id small,.scwms-history-tracking small{font-size:10px;font-weight:700;letter-spacing:.02em;color:#7c879a;text-transform:uppercase}
.scwms-history-shipment-id b{font-weight:700;color:#152033}
.scwms-history-tracking{margin-top:4px}.scwms-history-tracking span{font-size:12px;color:#5c667a}

/* ===== origen: wms-0990-reprint-approval.css ===== */
/* v0.9.90 — solicitudes y autorización de reimpresiones */
.scwms-reprint-approvals-panel{margin-bottom:18px!important}
.scwms-reprint-requests{display:grid;gap:10px}
.scwms-reprint-request{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px;border:1px solid #e7e9ee;border-radius:14px;background:#fff}
.scwms-reprint-request.is-approved{background:#f7fbf8}.scwms-reprint-request.is-rejected{opacity:.68}
.scwms-reprint-request-main{display:grid;gap:4px}.scwms-reprint-request-main b{font-size:14px}.scwms-reprint-request-main small{color:#7b8493;font-size:12px}.scwms-reprint-request-main p{margin:3px 0 0;font-size:13px;color:#424a57}
.scwms-reprint-request-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.scwms-reprint-status{font-size:11px;font-weight:800;padding:5px 9px;border-radius:999px;background:#fff2d7;color:#8b5b00}.scwms-reprint-status.ok{background:#e8f7ed;color:#176b35}.scwms-reprint-status.no{background:#fdecef;color:#a72232}
@media(max-width:700px){.scwms-reprint-request{grid-template-columns:1fr}.scwms-reprint-request-actions{justify-content:flex-start}}

/* ===== origen: wms-0991-cancel-safety.css ===== */
/* v0.9.91 · control físico de cancelados */
.scwms-cancelled-table .scwms-cancel-safety-state{display:flex;flex-direction:column;gap:5px;min-width:190px;max-width:260px}
.scwms-cancelled-table .scwms-cancel-safety-state b{font-size:12px;line-height:1.35}
.scwms-cancelled-table .scwms-cancel-safety-state small{font-size:11px;line-height:1.35;color:#667085}
.scwms-cancelled-table .scwms-cancel-safety-state.is-pending{padding:9px 10px;border:1px solid #f3b5b5;border-radius:10px;background:#fff5f5}
.scwms-cancelled-table .scwms-cancel-safety-state.is-pending b{color:#b42318}
.scwms-cancelled-table .scwms-cancel-safety-state.is-done{padding:9px 10px;border:1px solid #b7e0c2;border-radius:10px;background:#f3fbf5}
.scwms-cancelled-table .scwms-cancel-safety-state.is-done b{color:#067647}
.scwms-cancelled-table .scwms-cancel-safety-none{font-size:12px;color:#98a2b3;white-space:nowrap}
.scwms-cancelled-table .scwms-cancel-label-confirm{margin-top:3px;min-height:32px;padding:6px 10px;font-size:11px;white-space:nowrap;background:#b42318;border-color:#b42318}
.scwms-cancelled-table .scwms-no-debe-salir{white-space:nowrap;font-weight:800}
@media(max-width:900px){.scwms-cancelled-table .scwms-cancel-safety-state{min-width:165px}}

/* ===== origen: wms-0992-collecta-risk.css ===== */
.scwms-home-colecta-cutoff{display:inline-flex;align-items:center;gap:5px;font-weight:700;color:#5d6472}
.scwms-home-colecta-cutoff.is-closed{color:#b42318}
.scwms-home-colecta-cutoff.is-open{color:#176b3a}
.scwms-cancel-safety-state.is-transit-risk{border-color:#f0a1a1;background:#fff1f1}
.scwms-cancel-safety-state.is-transit-risk b{color:#b42318}

/* ===== origen: wms-0980-sidebar-hamburger.css ===== */
/* v0.9.80 — hamburguesa real y centrado estable del control */
@media (min-width:931px){
  body.scwms-page .scwms-sidebar-toggle{
    width:34px!important;height:34px!important;min-width:34px!important;flex:0 0 34px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    padding:0!important;margin:0!important;border-radius:10px!important;line-height:1!important;
  }
  body.scwms-page .scwms-sidebar-toggle > svg{display:none!important}
  body.scwms-page .scwms-hamburger{
    width:16px!important;height:14px!important;display:flex!important;flex-direction:column!important;
    justify-content:space-between!important;align-items:center!important;pointer-events:none!important;
  }
  body.scwms-page .scwms-hamburger i{
    display:block!important;width:16px!important;height:2px!important;flex:0 0 2px!important;
    margin:0!important;padding:0!important;border:0!important;border-radius:999px!important;background:currentColor!important;
  }
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-brand-row{
    display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;
    padding:0!important;margin:0 0 10px!important;gap:0!important;
  }
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-brand{display:none!important}
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-sidebar-toggle{
    margin:0 auto!important;position:static!important;left:auto!important;right:auto!important;transform:none!important;
  }
}

/* ===== origen: wms-0981-sidebar-motion.css ===== */
/* v0.9.81 — sidebar más limpio + transición abrir/cerrar + hamburguesa a flecha */
@media (min-width:931px){
  body.scwms-page .scwms-sidebar{
    transition:width .28s cubic-bezier(.22,.61,.36,1),
               min-width .28s cubic-bezier(.22,.61,.36,1),
               flex-basis .28s cubic-bezier(.22,.61,.36,1),
               padding .28s cubic-bezier(.22,.61,.36,1)!important;
    will-change:width;
  }

  body.scwms-page .scwms-main{
    transition:margin-left .28s cubic-bezier(.22,.61,.36,1),
               width .28s cubic-bezier(.22,.61,.36,1)!important;
  }

  /* Control más liviano: sin la caja pesada anterior. */
  body.scwms-page .scwms-sidebar-toggle{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    flex:0 0 36px!important;
    border:0!important;
    border-radius:11px!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#e8ebf1!important;
    transition:background .18s ease,transform .18s ease,color .18s ease!important;
  }
  body.scwms-page .scwms-sidebar-toggle:hover{
    background:rgba(255,255,255,.075)!important;
    color:#fff!important;
  }
  body.scwms-page .scwms-sidebar-toggle:active{
    transform:scale(.92)!important;
  }
  body.scwms-page .scwms-sidebar-toggle:focus-visible{
    outline:2px solid rgba(255,255,255,.36)!important;
    outline-offset:2px!important;
  }

  /* Eliminamos el pseudo-hamburger del parche anterior. */
  body.scwms-page .scwms-sidebar-toggle::before{
    display:none!important;
    content:none!important;
  }

  body.scwms-page .scwms-hamburger{
    position:relative!important;
    display:block!important;
    width:18px!important;
    height:14px!important;
    flex:none!important;
  }
  body.scwms-page .scwms-hamburger i{
    position:absolute!important;
    left:0!important;
    display:block!important;
    width:18px!important;
    height:2px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:999px!important;
    background:currentColor!important;
    transform-origin:center!important;
    transition:top .24s cubic-bezier(.22,.61,.36,1),
               left .24s cubic-bezier(.22,.61,.36,1),
               width .24s cubic-bezier(.22,.61,.36,1),
               transform .24s cubic-bezier(.22,.61,.36,1),
               opacity .18s ease!important;
  }
  body.scwms-page .scwms-hamburger i:nth-child(1){top:0!important}
  body.scwms-page .scwms-hamburger i:nth-child(2){top:6px!important}
  body.scwms-page .scwms-hamburger i:nth-child(3){top:12px!important}

  /* Al cerrar, la hamburguesa se transforma en flecha para indicar "abrir". */
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-hamburger i:nth-child(1){
    width:9px!important;
    left:8px!important;
    top:3px!important;
    transform:rotate(45deg)!important;
  }
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-hamburger i:nth-child(2){
    width:15px!important;
    left:1px!important;
    top:6px!important;
    transform:none!important;
  }
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-hamburger i:nth-child(3){
    width:9px!important;
    left:8px!important;
    top:9px!important;
    transform:rotate(-45deg)!important;
  }

  body.scwms-page .scwms-brand-row{
    min-height:40px!important;
    transition:gap .24s ease,margin .24s ease!important;
  }

  /* Mantener el logo en el DOM permite que desaparezca con fade en lugar de saltar. */
  body.scwms-page .scwms-sidebar .scwms-brand,
  body.scwms-page .scwms-sidebar .scwms-brand .scwms-brand-word{
    display:flex!important;
  }
  body.scwms-page .scwms-sidebar .scwms-brand{
    max-width:160px!important;
    opacity:1!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    transform:translateX(0)!important;
    transition:max-width .22s ease,opacity .16s ease,transform .22s ease!important;
  }
  body.scwms-page .scwms-sidebar .scwms-brand .scwms-brand-word{
    flex:0 0 auto!important;
  }
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-sidebar .scwms-brand{
    max-width:0!important;
    opacity:0!important;
    transform:translateX(-8px)!important;
    pointer-events:none!important;
  }

  body.scwms-page .scwms-app.sidebar-collapsed .scwms-brand-row{
    justify-content:center!important;
    gap:0!important;
  }
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-sidebar-toggle{
    margin:0 auto!important;
  }

  /* Los textos del menú se desvanecen; no desaparecen de golpe. */
  body.scwms-page .scwms-sidebar .scwms-nav-item{
    width:100%!important;
    box-sizing:border-box!important;
    transition:width .24s ease,padding .24s ease,gap .24s ease,
               background .18s ease,border-radius .24s ease,transform .18s ease!important;
  }
  body.scwms-page .scwms-sidebar .scwms-nav-item span{
    display:block!important;
    max-width:170px!important;
    opacity:1!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    transform:translateX(0)!important;
    transition:max-width .22s ease,opacity .14s ease,transform .22s ease!important;
  }
  body.scwms-page .scwms-sidebar .scwms-nav-item .scwms-icon{
    flex:0 0 auto!important;
    transition:transform .24s ease!important;
  }

  body.scwms-page .scwms-app.sidebar-collapsed .scwms-nav-item{
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    padding:0!important;
    margin-left:auto!important;
    margin-right:auto!important;
    gap:0!important;
    justify-content:center!important;
    border-radius:14px!important;
  }
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-nav-item span{
    max-width:0!important;
    opacity:0!important;
    transform:translateX(-5px)!important;
    pointer-events:none!important;
  }
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-nav-item .scwms-icon{
    margin:0!important;
    transform:scale(1.02)!important;
  }

  /* Sidebar cerrado compacto y limpio. */
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-sidebar{
    width:68px!important;
    min-width:68px!important;
    flex-basis:68px!important;
    padding-left:7px!important;
    padding-right:7px!important;
  }
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-main{
    margin-left:68px!important;
    width:calc(100% - 68px)!important;
  }

  /* No mostrar una barra de scroll pegada a los íconos cuando el menú está cerrado. */
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-nav{
    scrollbar-width:none!important;
  }
  body.scwms-page .scwms-app.sidebar-collapsed .scwms-nav::-webkit-scrollbar{
    width:0!important;
    height:0!important;
    display:none!important;
  }
}

@media (prefers-reduced-motion:reduce){
  body.scwms-page .scwms-sidebar,
  body.scwms-page .scwms-main,
  body.scwms-page .scwms-sidebar-toggle,
  body.scwms-page .scwms-hamburger i,
  body.scwms-page .scwms-sidebar .scwms-brand,
  body.scwms-page .scwms-sidebar .scwms-nav-item,
  body.scwms-page .scwms-sidebar .scwms-nav-item span{
    transition:none!important;
  }
}

/* ===== origen: wms-0986-kits-ui.css ===== */
/* v0.9.86 · composición de kits */
.scwms-kit-detail-toggle{margin-top:9px;border:1px solid #d9dde5;background:#fff;color:#222;border-radius:9px;padding:7px 10px;font:800 10px 'Inter',sans-serif;cursor:pointer;transition:.15s}
.scwms-kit-detail-toggle:hover{border-color:#8f1115;color:#8f1115;background:#fffafa}
.scwms-kit-detail-row>td{padding:0 20px 18px!important;border-top:0!important;background:#fff!important}
.scwms-kit-inline-box{margin-top:2px;border:1px solid #e3e6eb;border-radius:14px;background:#fafbfc;padding:16px 18px}
.scwms-kit-inline-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:12px}
.scwms-kit-inline-head span,.scwms-kit-label{display:block;color:#8a909b;font-size:9px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.scwms-kit-inline-head h4{margin:4px 0 3px;font-size:16px;line-height:1.3;color:#16181c}.scwms-kit-inline-head small{color:#6f7784;font-size:11px}
.scwms-kits-list{display:grid;grid-template-columns:1fr;gap:14px}
.scwms-kit-card{border:1px solid #e1e5ea;border-radius:16px;background:#fff;padding:18px;box-shadow:0 7px 22px rgba(18,24,40,.035)}
.scwms-kit-card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:start;padding-bottom:14px;border-bottom:1px solid #eceff2}
.scwms-kit-card-identity{display:flex;align-items:center;gap:14px;min-width:0}.scwms-kit-card-copy{min-width:0}.scwms-kit-card-photo{flex:0 0 68px;width:68px;height:68px;border:1px solid #e1e5ea;border-radius:14px;background:#f7f8fa;overflow:hidden;display:flex;align-items:center;justify-content:center}.scwms-kit-card-photo img{width:100%;height:100%;object-fit:contain;display:block}
.scwms-kit-card h3{margin:5px 0 7px;font-size:18px;line-height:1.3;color:#15171a}.scwms-kit-card-sku{display:flex;align-items:center;gap:7px}.scwms-kit-card-sku b{font-size:13px;color:#24272d}
.scwms-kit-card-count{text-align:right;min-width:125px}.scwms-kit-card-count b{display:block;font-size:24px;line-height:1;color:#8f1115}.scwms-kit-card-count span{display:block;margin-top:4px;font-size:10px;font-weight:800;text-transform:uppercase;color:#6d7581}.scwms-kit-card-count small{display:block;margin-top:5px;color:#8b919a;font-size:10px}
.scwms-kit-components{display:grid;gap:8px;margin-top:12px}
.scwms-kit-component{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(260px,1.5fr) 100px;gap:12px;align-items:center;border:1px solid #eceff2;border-radius:12px;background:#fbfbfc;padding:11px 13px}
.scwms-kit-component>div{min-width:0}.scwms-kit-component span{display:block;font-size:8.5px;line-height:1.25;font-weight:900;letter-spacing:.045em;color:#9399a2;text-transform:uppercase;margin-bottom:4px}.scwms-kit-component b{display:block;color:#252930;font-size:12px;line-height:1.4;word-break:break-word}.scwms-kit-component-qty{text-align:right}.scwms-kit-component-qty strong{font-size:19px;color:#15171a}.scwms-kit-components-empty{padding:12px;border:1px dashed #dfe3e8;border-radius:10px;color:#8a9098;font-size:11px;text-align:center}.scwms-kit-updated{margin-top:12px;color:#969ca5;font-size:9.5px;text-align:right}
.scwms-kits-panel .scwms-panel-head{margin-bottom:18px}
@media(max-width:850px){.scwms-kit-card-head{grid-template-columns:1fr}.scwms-kit-card-count{text-align:left}.scwms-kit-card-photo{flex-basis:58px;width:58px;height:58px}.scwms-kit-component{grid-template-columns:1fr}.scwms-kit-component-qty{text-align:left}.scwms-kit-detail-row>td{padding:0 10px 14px!important}}

/* v0.9.88 · componentes físicos de kits + stand-by de etiqueta */
.scwms-packing-item.is-kit-component{border-color:#d9e5f4;background:#fbfdff}
.scwms-packing-item.is-kit-component em{display:block;margin-top:4px;font-style:normal;font-size:11px;line-height:1.35;color:#607089}
.scwms-packing-split-label{margin-top:14px;width:100%;font-weight:900;letter-spacing:.02em}
.scwms-packing-split-help{display:block;margin-top:7px;color:#697386;font-size:11px;line-height:1.45;text-align:center}

/* ===== origen: wms-0989-report-admin-kits.css ===== */
/* v0.9.89 — informes por período + ajustes de administración/kits */
body.scwms-page .scwms-report-generator{margin-bottom:20px;padding:20px!important}
body.scwms-page .scwms-report-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:end}
body.scwms-page .scwms-report-filter-grid label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#465063}
body.scwms-page .scwms-report-filter-grid input,
body.scwms-page .scwms-report-filter-grid select{width:100%;min-height:44px;border:1px solid #d9dee7;border-radius:12px;background:#fff;padding:0 12px;font:500 14px 'Inter',Arial,sans-serif;color:#161b26;box-sizing:border-box}
body.scwms-page .scwms-report-filter-actions{display:flex;gap:8px;grid-column:1/-1;justify-content:flex-end;margin-top:2px}
body.scwms-page .scwms-report-generated{margin-top:18px;border-top:1px solid #e4e8ef;padding-top:18px}
body.scwms-page .scwms-report-generated-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body.scwms-page .scwms-report-generated-summary div{border:1px solid #e3e7ee;border-radius:14px;padding:12px;background:#fafbfc}
body.scwms-page .scwms-report-generated-summary small{display:block;color:#778196;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
body.scwms-page .scwms-report-generated-summary strong{display:block;font-size:24px;margin-top:5px;color:#101521}
body.scwms-page .scwms-report-generated-note{margin:12px 0 0;color:#667085;font-size:12px}
body.scwms-page .scwms-report-mini-table{width:100%;border-collapse:collapse;margin-top:16px;font-size:12px}
body.scwms-page .scwms-report-mini-table th,body.scwms-page .scwms-report-mini-table td{padding:9px 10px;border-bottom:1px solid #e8ebf0;text-align:left;vertical-align:top}
body.scwms-page .scwms-report-mini-table th{color:#596275;font-size:10px;text-transform:uppercase;letter-spacing:.04em}
body.scwms-page .scwms-report-section-title{margin:18px 0 4px;font-size:14px;font-weight:800;color:#161b26}
@media(max-width:1100px){body.scwms-page .scwms-report-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.scwms-page .scwms-report-generated-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){body.scwms-page .scwms-report-filter-grid,body.scwms-page .scwms-report-generated-summary{grid-template-columns:1fr}body.scwms-page .scwms-report-filter-actions{justify-content:stretch;flex-direction:column}body.scwms-page .scwms-report-filter-actions .scwms-btn{width:100%}}

/* v0.11.9 · Empaque asignado por WMS + confirmación visual por unidad */
.scwms-packing-auto-status{display:grid;grid-template-columns:auto 1fr;gap:11px;align-items:center;margin-top:18px;padding:14px 15px;border:1px solid #e2e6eb;border-radius:15px;background:#f8fafb}.scwms-packing-auto-status b,.scwms-packing-auto-status small{display:block}.scwms-packing-auto-status b{font-size:12px;color:#232a34}.scwms-packing-auto-status small{margin-top:3px;font-size:9px;color:#6b7481}.scwms-packing-assigned{text-align:center}.scwms-pda-state.is-assigned{background:#e8f7ee;color:#148143}.scwms-packing-assigned h2{margin:10px 0 14px!important}.scwms-packing-assigned-order{display:grid;gap:5px;padding:16px;border:1px solid #e0e4e9;border-radius:16px;background:#f8f9fb;margin-bottom:14px}.scwms-packing-assigned-order small{font-size:8px;text-transform:uppercase;letter-spacing:.07em;color:#737d8a}.scwms-packing-assigned-order b{font-size:21px;color:#1d232c}.scwms-packing-assigned-order span{font-size:10px;color:#596472;font-weight:700}.scwms-packing-start{min-height:58px!important;font-size:14px!important}
.scwms-packing-scan-success{display:flex;align-items:center;justify-content:center;gap:12px;margin:8px 0 12px;padding:13px 15px;border:1px solid #bce2c9;border-radius:15px;background:#eaf8ef;color:#126d38;transform:scale(.94);opacity:0}.scwms-packing-scan-success>span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#1a9b50;color:#fff;font-size:22px;font-weight:900}.scwms-packing-scan-success b,.scwms-packing-scan-success small{display:block;text-align:left}.scwms-packing-scan-success b{font-size:12px}.scwms-packing-scan-success small{font-size:9px;margin-top:2px;color:#317a50}.scwms-packing-scan-success.is-showing{animation:scwmsPackScanOk 1.1s cubic-bezier(.2,.8,.2,1) both}@keyframes scwmsPackScanOk{0%{opacity:0;transform:scale(.92) translateY(8px)}18%{opacity:1;transform:scale(1.035) translateY(0)}35%{transform:scale(1)}82%{opacity:1}100%{opacity:0;transform:scale(.98) translateY(-4px)}}
.scwms-packing-print{margin-top:16px;padding:18px;border:1px solid #c8e6d2;border-radius:18px;background:#f0faf4;text-align:center}.scwms-packing-print-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 10px;border-radius:18px;background:#fff;border:1px solid #d3eadb;font-size:28px}.scwms-packing-print small{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:#148143;font-weight:900}.scwms-packing-print h3{margin:4px 0 5px!important;font-size:22px!important}.scwms-packing-print p{margin:0 0 14px!important;font-size:10px!important;color:#5c6874}.scwms-packing-print .scwms-btn+.scwms-btn{margin-top:8px}
@media (prefers-reduced-motion:reduce){.scwms-packing-scan-success.is-showing{animation:none;opacity:1;transform:none}}

/* v0.11.13 · Picker sin cámara + modal de problemas contenido en PDA */
#scwms-packing-problem-modal .scwms-picking-problem-card{box-sizing:border-box}
#scwms-packing-problem-modal .scwms-picking-problem-options>*{min-width:0}
#scwms-packing-problem-modal .scwms-picking-problem-detail,#scwms-packing-problem-modal textarea{box-sizing:border-box;max-width:100%;min-width:0}
@media(max-height:760px){
  #scwms-packing-problem-modal{padding:8px;place-items:center}
  #scwms-packing-problem-modal .scwms-picking-problem-card{max-height:calc(100dvh - 16px);padding:14px}
  #scwms-packing-problem-modal .scwms-picking-problem-head{margin-bottom:10px}
  #scwms-packing-problem-modal .scwms-picking-problem-options{gap:7px}
  #scwms-packing-problem-modal .scwms-picking-problem-options button{min-height:48px;padding:8px 10px}
  #scwms-packing-problem-modal .scwms-picking-problem-detail{margin-top:10px}
  #scwms-packing-problem-modal .scwms-picking-problem-detail textarea{min-height:78px}
}

/* v0.11.13 · Despacho scan heading cleanup */
.scwms-dispatch-desk-scan{position:relative}
.scwms-dispatch-desk-scan .scwms-panel-head{margin-bottom:14px;align-items:center}
.scwms-dispatch-desk-scan .scwms-panel-head>div:empty{display:none}
.scwms-dispatch-desk-scan .scwms-panel-head h3{font-size:18px;line-height:1.1;margin:0;font-weight:800;color:#111827}
.scwms-dispatch-desk-scan .scwms-pda-dispatch-card{border:2px solid rgba(220,38,38,.12);border-radius:24px;padding:8px 6px;background:linear-gradient(180deg,#fff 0%,#fcfcfd 100%);box-shadow:0 18px 44px rgba(15,23,42,.06)}
.scwms-dispatch-desk-scan .scwms-pda-dispatch-card #scwms-dispatch-pda-waiting>h2{font-size:24px;line-height:1.05;margin:0 0 12px;font-weight:850;color:#111827}
.scwms-dispatch-desk-scan .scwms-pda-dispatch-card .scwms-pda-scan-box{border-width:1px;background:#f8fafc;padding:16px}
.scwms-dispatch-desk-scan .scwms-pda-dispatch-card .scwms-dispatch-pda-first-scan label{font-size:13px;font-weight:800;color:#4b5563;letter-spacing:.01em}
.scwms-dispatch-desk-scan .scwms-pda-dispatch-card .scwms-dispatch-pda-input-row{gap:14px}

/* v0.11.19 · Picker error modal */
.scwms-picker-error-modal{position:fixed;inset:0;z-index:500;display:grid;place-items:center;padding:18px;box-sizing:border-box}
.scwms-picker-error-modal[hidden]{display:none!important}
.scwms-picker-error-backdrop{position:absolute;inset:0;background:rgba(17,24,39,.58);backdrop-filter:blur(5px);opacity:0;transition:opacity .22s ease}
.scwms-picker-error-card{position:relative;z-index:1;width:min(390px,calc(100vw - 36px));box-sizing:border-box;background:#fff;border:1px solid rgba(225,29,46,.14);border-radius:26px;padding:30px 24px 22px;text-align:center;box-shadow:0 34px 90px rgba(17,24,39,.28);opacity:0;transform:translateY(22px) scale(.94);transition:opacity .22s ease,transform .28s cubic-bezier(.2,.8,.2,1)}
.scwms-picker-error-modal.is-visible .scwms-picker-error-backdrop{opacity:1}
.scwms-picker-error-modal.is-visible .scwms-picker-error-card{opacity:1;transform:translateY(0) scale(1)}
.scwms-picker-error-modal.is-leaving .scwms-picker-error-backdrop{opacity:0}
.scwms-picker-error-modal.is-leaving .scwms-picker-error-card{opacity:0;transform:translateY(10px) scale(.97)}
.scwms-picker-error-icon{width:66px;height:66px;margin:0 auto 15px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(145deg,#fff1f2,#ffe4e6);color:#e11d2e;font-size:34px;font-weight:900;box-shadow:0 12px 30px rgba(225,29,46,.13);animation:scwmsPickerErrorPop .44s cubic-bezier(.2,.9,.25,1.25)}
.scwms-picker-error-card>small{display:block;color:#e11d2e;font-size:10px;font-weight:900;letter-spacing:.09em;margin-bottom:6px}
.scwms-picker-error-card h3{margin:0;font-size:25px;line-height:1.08;color:#151922;font-weight:900}
.scwms-picker-error-message{margin:11px auto 20px;max-width:310px;color:#5c6673;font-size:14px;line-height:1.5;font-weight:600}
.scwms-picker-error-ok{width:100%;min-height:54px;border:0;border-radius:15px;background:#e11d2e;color:#fff;font:800 14px 'Inter',sans-serif;cursor:pointer;box-shadow:0 12px 25px rgba(225,29,46,.18);transition:transform .14s ease,box-shadow .14s ease}
.scwms-picker-error-ok:active{transform:scale(.985)}
.scwms-picker-error-close{position:absolute;right:14px;top:14px;width:38px;height:38px;border:0;border-radius:50%;background:#f3f4f6;color:#4b5563;font-size:24px;line-height:1;cursor:pointer}
@keyframes scwmsPickerErrorPop{0%{transform:scale(.65) rotate(-7deg);opacity:.25}70%{transform:scale(1.07) rotate(2deg)}100%{transform:scale(1) rotate(0);opacity:1}}
@media (max-width:480px){.scwms-picker-error-modal{padding:14px}.scwms-picker-error-card{width:100%;max-width:calc(100vw - 28px);border-radius:22px;padding:27px 18px 18px}.scwms-picker-error-card h3{font-size:23px}.scwms-picker-error-message{font-size:13px}.scwms-picker-error-icon{width:60px;height:60px;border-radius:20px;font-size:31px}}
@media (prefers-reduced-motion:reduce){.scwms-picker-error-backdrop,.scwms-picker-error-card,.scwms-picker-error-ok{transition:none!important}.scwms-picker-error-icon{animation:none!important}}


/* v0.11.19 · Packer error modal */
.scwms-packer-error-card{border-color:rgba(239,68,68,.14)}
.scwms-packer-error-card>small{color:#ef4444}
.scwms-packer-error-card .scwms-picker-error-icon{background:linear-gradient(145deg,#fff4f4,#ffe7e7);color:#dc2626;box-shadow:0 12px 30px rgba(220,38,38,.14)}
.scwms-packer-error-card .scwms-picker-error-ok{background:#ef4444;box-shadow:0 12px 25px rgba(239,68,68,.18)}

/* v0.11.19 · Inicio propio de Picker */
.scwms-picker-home{display:grid;gap:18px}
.scwms-picker-home-head{text-align:center;padding:4px 4px 0}
.scwms-picker-home-head .scwms-pda-state{margin-inline:auto}
.scwms-picker-home-head h2{margin:10px 0 5px;font-size:28px;line-height:1.05;font-weight:900;color:#151922}
.scwms-picker-home-head p{margin:0;color:#6b7280;font-size:13px;font-weight:600}
#scwms-picker-home-state.is-paused{background:#fff7e8;color:#a16207}
.scwms-picker-home-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.scwms-picker-home-action{appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-width:0;min-height:78px;border:1px solid #dfe3e8;border-radius:17px;background:#fff;padding:14px 15px;text-align:left;color:#252b34;cursor:pointer;box-shadow:0 8px 22px rgba(15,23,42,.035);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease,background .15s ease}
.scwms-picker-home-action:hover{border-color:#cfd5dc;box-shadow:0 12px 26px rgba(15,23,42,.065);transform:translateY(-1px)}
.scwms-picker-home-action:active{transform:scale(.99)}
.scwms-picker-home-action:disabled{opacity:.48;cursor:not-allowed;transform:none;box-shadow:none}
.scwms-picker-home-action>span{flex:0 0 46px;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#f2f4f7;font-size:21px;font-weight:900;color:#4b5563}
.scwms-picker-home-action>div{min-width:0;display:grid;gap:4px}.scwms-picker-home-action b{font-size:14px;line-height:1.15;font-weight:900}.scwms-picker-home-action small{font-size:10.5px;line-height:1.35;color:#7b8491;font-weight:600}
.scwms-picker-home-action.is-primary{border-color:#f1c4c7;background:linear-gradient(180deg,#fff 0%,#fffafa 100%)}
.scwms-picker-home-action.is-primary>span{background:#fff0f1;color:#d91f2b}
.scwms-picker-home-action.is-primary b{color:#b81923}
.scwms-picker-home-action.is-resume-work{border-color:#bde5cf;background:#f7fff9}.scwms-picker-home-action.is-resume-work>span{background:#e8f8ee;color:#159447}.scwms-picker-home-action.is-resume-work b{color:#107a3a}
.scwms-picker-paused{display:flex;align-items:center;gap:11px;border:1px solid #f1d59f;background:#fffaf0;border-radius:14px;padding:12px 14px;color:#6f520b}.scwms-picker-paused[hidden]{display:none!important}.scwms-picker-paused>span{font-size:21px}.scwms-picker-paused b{display:block;font-size:12px}.scwms-picker-paused small{display:block;margin-top:2px;font-size:10px;color:#876c2d;line-height:1.4}

.scwms-picker-stock-modal{position:fixed;inset:0;z-index:510;display:grid;place-items:center;padding:16px;background:rgba(17,24,39,.6);backdrop-filter:blur(5px);box-sizing:border-box}
.scwms-picker-stock-modal[hidden]{display:none!important}
.scwms-picker-stock-card{position:relative;width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;border-radius:24px;background:#fff;padding:25px;box-shadow:0 34px 90px rgba(17,24,39,.3);animation:scwmsPickerStockIn .26s cubic-bezier(.2,.8,.2,1)}
.scwms-picker-stock-card>small{display:block;color:#d91f2b;font-size:9px;font-weight:900;letter-spacing:.09em}.scwms-picker-stock-card>h3{margin:4px 0 5px;font-size:25px;line-height:1.1}.scwms-picker-stock-card>p{margin:0 40px 17px 0;color:#6b7280;font-size:12px;line-height:1.45}
.scwms-picker-stock-close{position:absolute;right:14px;top:14px;width:38px;height:38px;border:0;border-radius:50%;background:#f1f3f5;color:#4b5563;font-size:24px;cursor:pointer}
.scwms-picker-stock-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.scwms-picker-stock-search input{min-width:0;height:52px;border:1px solid #d8dde4!important;border-radius:13px!important;padding:0 14px!important;background:#fff!important;color:#202630;font:700 14px 'Inter',sans-serif;outline:0}.scwms-picker-stock-search input:focus{border-color:#ef9ca2!important;box-shadow:0 0 0 3px #fff0f1!important}.scwms-picker-stock-search button{min-width:98px;border:0;border-radius:13px;background:#e11d2e;color:#fff;font:800 12px 'Inter',sans-serif;padding:0 16px;cursor:pointer}
.scwms-picker-stock-results{display:grid;gap:8px;margin-top:14px}.scwms-picker-stock-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:15px;align-items:center;border:1px solid #e1e5ea;border-radius:14px;padding:12px 13px;background:#fbfcfd}.scwms-picker-stock-item b{display:block;font-size:12px;color:#202630;line-height:1.3}.scwms-picker-stock-item small{display:block;margin-top:4px;color:#7a8390;font-size:9.5px;line-height:1.4}.scwms-picker-stock-qty{text-align:right}.scwms-picker-stock-qty strong{display:block;font-size:22px;line-height:1;color:#151922}.scwms-picker-stock-qty small{white-space:nowrap;color:#6b7280}.scwms-picker-stock-empty{padding:25px 12px;text-align:center;border-radius:13px;background:#f5f6f8;color:#727c89;font-size:11px;font-weight:700}.scwms-picker-stock-empty.is-error{background:#fff1f2;color:#b91c2a}
@keyframes scwmsPickerStockIn{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:560px){.scwms-picker-home-actions{grid-template-columns:1fr}.scwms-picker-home-action{min-height:72px}.scwms-picker-home-head h2{font-size:24px}.scwms-picker-stock-card{width:100%;max-height:calc(100dvh - 20px);border-radius:20px;padding:22px 15px 16px}.scwms-picker-stock-search{grid-template-columns:1fr}.scwms-picker-stock-search button{height:48px}.scwms-picker-stock-item{grid-template-columns:minmax(0,1fr) auto}.scwms-picker-stock-card>p{margin-right:30px}}
@media(prefers-reduced-motion:reduce){.scwms-picker-stock-card{animation:none}.scwms-picker-home-action{transition:none}}

/* v0.11.19 · Bloqueo real de sesión Picker */
body.scwms-picker-session-locked{overflow:hidden!important}
.scwms-picker-session-lock{position:fixed;inset:0;z-index:900;display:grid;place-items:center;box-sizing:border-box;padding:22px;background:#15151a;overflow:hidden}
.scwms-picker-session-lock[hidden]{display:none!important}
.scwms-picker-session-lock-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none;background:radial-gradient(circle at 50% 32%,rgba(225,29,46,.16),transparent 38%),linear-gradient(160deg,#17171d 0%,#202027 48%,#141419 100%)}
.scwms-picker-session-lock-bg i{position:absolute;width:420px;height:420px;border:1px solid rgba(255,255,255,.055);border-radius:50%;left:50%;top:43%;transform:translate(-50%,-50%) scale(.72);opacity:0}
.scwms-picker-session-lock.is-visible .scwms-picker-session-lock-bg i:nth-child(1){animation:scwmsLockRing 3.6s ease-out infinite}
.scwms-picker-session-lock.is-visible .scwms-picker-session-lock-bg i:nth-child(2){animation:scwmsLockRing 3.6s 1.2s ease-out infinite}
.scwms-picker-session-lock.is-visible .scwms-picker-session-lock-bg i:nth-child(3){animation:scwmsLockRing 3.6s 2.4s ease-out infinite}
.scwms-picker-session-lock-card{position:relative;z-index:1;width:min(420px,100%);box-sizing:border-box;padding:34px 28px 26px;border:1px solid rgba(255,255,255,.1);border-radius:30px;background:rgba(255,255,255,.975);text-align:center;box-shadow:0 40px 120px rgba(0,0,0,.5);opacity:0;transform:translateY(22px) scale(.95);transition:opacity .24s ease,transform .34s cubic-bezier(.2,.86,.2,1)}
.scwms-picker-session-lock.is-visible .scwms-picker-session-lock-card{opacity:1;transform:translateY(0) scale(1)}
.scwms-picker-session-lock.is-leaving .scwms-picker-session-lock-card{opacity:0;transform:translateY(10px) scale(.97)}
.scwms-picker-lock-visual{position:relative;width:104px;height:104px;margin:0 auto 18px;display:grid;place-items:center}
.scwms-picker-lock-visual:before,.scwms-picker-lock-visual:after{content:"";position:absolute;inset:0;border-radius:34px;background:#fdebed;animation:scwmsLockGlow 2.1s ease-in-out infinite}
.scwms-picker-lock-visual:after{inset:11px;background:#fff4f5;animation-delay:.22s}
.scwms-picker-lock-avatar{position:relative;z-index:2;width:68px;height:68px;border-radius:24px;display:grid;place-items:center;background:#191b21;color:#fff;font:900 24px 'Inter',sans-serif;letter-spacing:-.03em;box-shadow:0 12px 26px rgba(17,24,39,.2)}
.scwms-picker-lock-badge{position:absolute;z-index:3;right:2px;bottom:4px;width:38px;height:38px;border:4px solid #fff;border-radius:15px;display:grid;place-items:center;background:#e11d2e;font-size:17px;box-shadow:0 10px 22px rgba(225,29,46,.28);animation:scwmsLockBadge 1.8s ease-in-out infinite}
.scwms-picker-lock-kicker{display:block;color:#e11d2e;font-size:10px;font-weight:900;letter-spacing:.12em;margin-bottom:7px}
.scwms-picker-session-lock-card h2{margin:0;color:#151922;font-size:30px;line-height:1.05;font-weight:900;letter-spacing:-.035em}
.scwms-picker-session-lock-card>p{margin:11px auto 22px;max-width:330px;color:#69727f;font-size:13px;line-height:1.5;font-weight:600}.scwms-picker-session-lock-card>p b{color:#202630}
.scwms-picker-lock-password{display:block;text-align:left}.scwms-picker-lock-password>span{display:block;margin:0 0 7px 3px;color:#4b5563;font-size:11px;font-weight:800}.scwms-picker-lock-password input{box-sizing:border-box;width:100%;height:56px;border:1px solid #d8dde4!important;border-radius:15px!important;background:#fff!important;padding:0 15px!important;outline:0;color:#202630;font:700 15px 'Inter',sans-serif}.scwms-picker-lock-password input:focus{border-color:#ea8f96!important;box-shadow:0 0 0 4px #fff0f1!important}
.scwms-picker-lock-error{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#fff0f1;color:#b71c27;font-size:11px;font-weight:750;line-height:1.4;text-align:left}.scwms-picker-lock-error[hidden]{display:none!important}
.scwms-picker-lock-unlock{width:100%;min-height:56px;margin-top:14px;border:0;border-radius:15px;background:#e11d2e;color:#fff;font:850 14px 'Inter',sans-serif;cursor:pointer;box-shadow:0 13px 30px rgba(225,29,46,.22);transition:transform .15s ease,filter .15s ease}.scwms-picker-lock-unlock:hover{filter:brightness(.98)}.scwms-picker-lock-unlock:active{transform:scale(.99)}.scwms-picker-lock-unlock:disabled{opacity:.6;cursor:wait}
.scwms-picker-lock-switch{display:block;margin-top:13px;padding:11px;color:#5f6874;font-size:11px;font-weight:800;text-decoration:none}.scwms-picker-lock-switch:hover{color:#202630;text-decoration:underline}
.scwms-picker-session-lock.is-shaking .scwms-picker-session-lock-card{animation:scwmsLockShake .42s ease}
@keyframes scwmsLockRing{0%{opacity:.55;transform:translate(-50%,-50%) scale(.35)}70%{opacity:.08}100%{opacity:0;transform:translate(-50%,-50%) scale(1.18)}}
@keyframes scwmsLockGlow{0%,100%{transform:scale(.94);opacity:.7}50%{transform:scale(1.04);opacity:1}}
@keyframes scwmsLockBadge{0%,100%{transform:translateY(0) rotate(0deg)}50%{transform:translateY(-3px) rotate(-4deg)}}
@keyframes scwmsLockShake{0%,100%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(7px)}60%{transform:translateX(-5px)}80%{transform:translateX(3px)}}
@media(max-width:520px){.scwms-picker-session-lock{padding:14px}.scwms-picker-session-lock-card{width:100%;padding:29px 18px 21px;border-radius:24px}.scwms-picker-lock-visual{width:92px;height:92px}.scwms-picker-lock-avatar{width:62px;height:62px;border-radius:21px;font-size:22px}.scwms-picker-session-lock-card h2{font-size:27px}.scwms-picker-session-lock-card>p{font-size:12px}.scwms-picker-session-lock-bg i{width:300px;height:300px}}
@media(prefers-reduced-motion:reduce){.scwms-picker-session-lock-card,.scwms-picker-lock-unlock{transition:none!important}.scwms-picker-session-lock-bg i,.scwms-picker-lock-visual:before,.scwms-picker-lock-visual:after,.scwms-picker-lock-badge,.scwms-picker-session-lock.is-shaking .scwms-picker-session-lock-card{animation:none!important}}

/* v0.11.22 · Despacho separado por Flex / Colecta / ME1 */
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-section{
  margin:0 0 20px;padding:20px;border:1px solid #dfe3e8;border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(20,26,36,.045)
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-eyebrow{display:block;color:#8a93a0;font-size:10px;font-weight:900;letter-spacing:.1em;margin-bottom:3px}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-head h2{margin:0;font-size:29px;line-height:1;font-weight:900;letter-spacing:-.035em;color:#161b22}
body.scwms-page .scwms-section[data-section="despacho"] [data-dispatch-channel="flex"] .scwms-dispatch-channel-head h2{color:#cf2026}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini{min-width:310px;max-width:520px;display:grid;grid-template-columns:auto auto;gap:3px 12px;align-items:center;padding:11px 13px;border:1px solid #e3e6ea;border-radius:13px;background:#f8f9fb}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini .scwms-cutoff-status{grid-row:1/3;align-self:center}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>strong{font-size:18px;line-height:1;text-align:right;color:#171a20}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>small{font-size:9px;color:#677180;text-align:right}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>p{display:none}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini .scwms-collecta-view-btn{grid-column:1/-1;margin-top:7px;min-height:36px}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini.is-warn{border-color:#e9cf91;background:#fffaf0}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini.is-danger{border-color:#efb1b4;background:#fff5f5;animation:scwmsCutoffPulse 1.45s ease-in-out infinite}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini.is-muted{opacity:.78}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis .scwms-kpi{min-height:142px!important;padding:16px 14px!important;border-radius:15px!important;box-shadow:none!important;border:1px solid #e3e6ea!important}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis .scwms-kpi-icon{width:38px!important;height:38px!important}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis .scwms-kpi small{font-size:10px!important;line-height:1.25!important}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis .scwms-kpi strong{font-size:34px!important;margin:10px 0 7px!important}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis .scwms-kpi em{font-size:9px!important;line-height:1.25!important}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-section{background:#fbfcfd}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-head{align-items:end}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-note{font-size:10px;color:#7a8491;font-weight:650}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-card{min-height:122px;padding:17px;border:1px solid #dfe3e8;border-radius:15px;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-card>span{font-size:11px;font-weight:900;letter-spacing:.04em;color:#4b5563}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-card>strong{font-size:34px;line-height:1;margin:10px 0 6px;color:#171a20}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-card>small{font-size:9px;color:#929aa5;font-weight:650}
@media(max-width:1500px){body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-head{flex-direction:column}body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini{min-width:0;width:100%;max-width:none;box-sizing:border-box}body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-section{padding:14px;border-radius:16px}body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis{grid-template-columns:1fr 1fr;gap:9px}body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis .scwms-kpi{min-height:120px!important}body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-kpis{grid-template-columns:1fr 1fr;gap:9px}body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-card{min-height:100px}}

/* v0.11.22 · Detector automático de etiquetas ME1 */
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detector{margin-top:16px;padding:18px;border:1px solid #dfe3e8;border-radius:17px;background:linear-gradient(180deg,#fff 0%,#fafbfc 100%)}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detector-copy h3{margin:2px 0 4px;font-size:20px;line-height:1.1;color:#171a20}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detector-copy p{margin:0 0 13px;color:#687281;font-size:11px;line-height:1.45;max-width:780px}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-scan-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;max-width:980px;margin:0 auto}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-scan-row input{box-sizing:border-box;width:100%;height:58px;border:2px solid #e4e7eb;border-radius:14px;background:#fff;padding:0 20px;color:#171a20;font:800 15px 'Inter',sans-serif;outline:0;transition:border-color .16s ease,box-shadow .16s ease}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-scan-row input:focus{border-color:#e11d2e;box-shadow:0 0 0 4px rgba(225,29,46,.08)}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-scan-row button{border:0;border-radius:14px;background:#1f2530;color:#fff;font:850 13px 'Inter',sans-serif;cursor:pointer;transition:transform .14s ease,opacity .14s ease}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-scan-row button:active{transform:scale(.985)}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-scan-row button:disabled{opacity:.55;cursor:wait}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detect-result{margin-top:12px;padding:13px 14px;border:1px solid #bfe7cb;border-radius:14px;background:#f2fbf5;display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;align-items:center;opacity:0;transform:translateY(8px) scale(.985)}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detect-result[hidden]{display:none!important}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detect-result.is-showing{animation:scwmsMe1ResultIn .32s cubic-bezier(.2,.85,.2,1) forwards}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-result-icon{width:42px;height:42px;border-radius:13px;background:#dff5e6;color:#138a3b;display:grid;place-items:center;font-size:22px;font-weight:900}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detect-result small{display:block;color:#679074;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detect-result strong{display:block;margin-top:2px;color:#173b23;font-size:16px;font-weight:900}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detect-result p{margin:2px 0 0;color:#4e6656;font-size:10px;font-weight:650}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detect-result.is-duplicate{border-color:#d8dce2;background:#f6f7f8}.scwms-me1-detect-result.is-duplicate .scwms-me1-result-icon{background:#e9ebef;color:#5c6673}.scwms-me1-detect-result.is-duplicate strong{color:#303741}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detect-result.is-error{border-color:#f1c4c6;background:#fff5f5}.scwms-me1-detect-result.is-error .scwms-me1-result-icon{background:#ffe3e4;color:#cf2026}.scwms-me1-detect-result.is-error strong{color:#a9191f}.scwms-me1-detect-result.is-error p{color:#7f5558}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-scan-help{display:block;margin-top:9px;color:#87909c;font-size:9px;font-weight:650}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-card.is-hit{animation:scwmsMe1CardHit .5s cubic-bezier(.2,.9,.25,1.2)}
@keyframes scwmsMe1ResultIn{to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes scwmsMe1CardHit{0%{transform:scale(1)}45%{transform:scale(1.035);box-shadow:0 12px 28px rgba(20,130,60,.12)}100%{transform:scale(1)}}
@media(max-width:620px){body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-scan-row{grid-template-columns:1fr;max-width:100%}}
@media(prefers-reduced-motion:reduce){body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detect-result.is-showing,body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-card.is-hit{animation:none!important;opacity:1;transform:none}}

/* v0.11.22 · lector unificado Flex / Colecta / ME1 */
body.scwms-page .scwms-section[data-section="despacho"] .scwms-label-reader-section{padding:0;border:0;background:transparent;box-shadow:none}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-label-reader-section .scwms-unified-label-detector{margin:0 0 18px;padding:20px;border:1px solid #d9dee5;border-left:4px solid #e11d2e;border-radius:18px;background:#fff;box-shadow:0 12px 34px rgba(15,23,42,.05)}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-label-reader-section .scwms-unified-label-detector h3{font-size:22px}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-section.is-scan-hit{animation:scwmsDispatchScanHit .68s cubic-bezier(.2,.8,.2,1)}
@keyframes scwmsDispatchScanHit{0%{box-shadow:0 0 0 0 rgba(22,163,74,0);transform:scale(1)}38%{box-shadow:0 0 0 5px rgba(22,163,74,.14),0 18px 44px rgba(15,23,42,.08);transform:scale(1.004)}100%{box-shadow:0 0 0 0 rgba(22,163,74,0);transform:scale(1)}}
@media(prefers-reduced-motion:reduce){body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-section.is-scan-hit{animation:none!important}}

/* v0.11.27 · Cortes Flex / Colecta con protagonismo */
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(390px,470px)!important;
  align-items:stretch!important;
  gap:22px!important;
  margin-bottom:20px!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini{
  min-width:0!important;
  max-width:none!important;
  min-height:138px!important;
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto auto auto!important;
  column-gap:20px!important;
  row-gap:5px!important;
  align-content:center!important;
  padding:18px 20px!important;
  border:1px solid #dfe3e8!important;
  border-radius:18px!important;
  background:#f8f9fb!important;
  box-shadow:0 10px 28px rgba(15,23,42,.045)!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini .scwms-cutoff-status{
  grid-column:1!important;
  grid-row:1!important;
  justify-self:start!important;
  align-self:center!important;
  min-height:34px!important;
  padding:0 16px!important;
  display:inline-flex!important;
  align-items:center!important;
  border-radius:999px!important;
  font-size:12px!important;
  font-weight:850!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>strong{
  grid-column:2!important;
  grid-row:1 / 3!important;
  align-self:center!important;
  justify-self:end!important;
  font-size:42px!important;
  line-height:.95!important;
  font-weight:900!important;
  letter-spacing:-.045em!important;
  text-align:right!important;
  color:#151922!important;
  white-space:nowrap!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>small{
  grid-column:1!important;
  grid-row:2!important;
  align-self:end!important;
  font-size:12px!important;
  line-height:1.3!important;
  font-weight:650!important;
  color:#667180!important;
  text-align:left!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>p{
  display:block!important;
  grid-column:1 / -1!important;
  grid-row:3!important;
  min-height:18px!important;
  margin:7px 0 0!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:650!important;
  color:#4f5967!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini .scwms-collecta-view-btn{
  grid-column:1 / -1!important;
  grid-row:4!important;
  margin-top:9px!important;
  min-height:44px!important;
  border-radius:13px!important;
  font-size:13px!important;
  font-weight:850!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini.is-warn{
  border-color:#e8c979!important;
  background:#fffaf0!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini.is-danger{
  border-color:#efa7ab!important;
  background:#fff4f4!important;
}
@media(max-width:1050px){
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-head{
    grid-template-columns:1fr!important;
  }
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini{
    width:100%!important;
  }
}
@media(max-width:620px){
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini{
    min-height:128px!important;
    padding:16px!important;
    grid-template-columns:1fr auto!important;
  }
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>strong{
    font-size:34px!important;
  }
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini .scwms-cutoff-status{
    min-height:32px!important;
    padding:0 13px!important;
    font-size:11px!important;
  }
}

/* v0.11.27 · único lector al final de Despacho */
.scwms-label-reader-bottom{margin-top:18px;margin-bottom:0}

/* v0.11.27 · cortes mucho más visibles */
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-head{
  grid-template-columns:minmax(0,1fr) minmax(470px,620px)!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini{
  min-height:176px!important;
  padding:22px 26px!important;
  column-gap:28px!important;
  row-gap:8px!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>strong{
  font-size:64px!important;
  line-height:.9!important;
  letter-spacing:-.055em!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini .scwms-cutoff-status{
  min-height:40px!important;
  padding:0 20px!important;
  font-size:14px!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>small{
  font-size:14px!important;
  font-weight:750!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>p{
  font-size:14px!important;
  margin-top:10px!important;
}
@media(max-width:1050px){
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-head{grid-template-columns:1fr!important}
}
@media(max-width:620px){
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini{min-height:150px!important;padding:18px!important}
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>strong{font-size:46px!important}
}

/* v0.11.27 · lector con aire + detalle ME1 */
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detector-copy{margin-bottom:28px;text-align:center}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detector-copy h3{margin:0;font-size:22px;line-height:1.15}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-head-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detail-btn{min-height:40px;padding:0 16px;border:1px solid #e11d2e;border-radius:11px;background:#fff;color:#c81e2b;font:800 11px 'Inter',sans-serif;cursor:pointer}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detail-btn:hover{background:#fff5f5}
.scwms-me1-detail-modal{position:fixed;inset:0;z-index:430;background:rgba(17,24,39,.58);backdrop-filter:blur(4px);display:none;place-items:center;padding:18px;box-sizing:border-box}
.scwms-me1-detail-modal.is-open{display:grid}
.scwms-me1-detail-card{width:min(680px,calc(100vw - 36px));max-height:calc(100dvh - 36px);overflow:auto;border-radius:22px;padding:22px;box-sizing:border-box}
.scwms-me1-detail-copy{margin:4px 0 16px;color:#687281;font-size:12px}
.scwms-me1-detail-list{display:grid;gap:8px}
.scwms-me1-detail-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border:1px solid #e2e6eb;border-radius:13px;background:#fafbfc}
.scwms-me1-detail-main{min-width:0}.scwms-me1-detail-main span{display:block;color:#7a8491;font-size:9px;font-weight:900;letter-spacing:.06em}.scwms-me1-detail-main strong{display:block;margin-top:4px;color:#171a20;font-size:15px;word-break:break-all}
.scwms-me1-detail-code{display:flex;align-items:center;gap:10px;min-width:0}.scwms-me1-detail-code strong{flex:1 1 auto;min-width:0}
.scwms-me1-detail-meta{text-align:right;white-space:nowrap}.scwms-me1-detail-meta b{display:block;color:#303741;font-size:12px}.scwms-me1-detail-meta small{display:block;margin-top:3px;color:#7a8491;font-size:10px}
@media(max-width:620px){body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-detector-copy{margin-bottom:18px}body.scwms-page .scwms-section[data-section="despacho"] .scwms-me1-head-actions{justify-content:flex-start}.scwms-me1-detail-card{width:100%;max-width:calc(100vw - 24px);padding:18px 14px}.scwms-me1-detail-row{align-items:flex-start}.scwms-me1-detail-meta{white-space:normal}}

/* v0.11.29 · corte más equilibrado */
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>strong{
  font-size:44px!important;
  line-height:.95!important;
  letter-spacing:-.045em!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>small{
  color:#e11d2e!important;
  font-size:15px!important;
  font-weight:900!important;
  letter-spacing:-.01em!important;
}
@media(max-width:620px){
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>strong{
    font-size:36px!important;
  }
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>small{
    font-size:13px!important;
  }
}



/* v0.11.32 · Despacho más prolijo: títulos consistentes + estados legibles */
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-head h2,
body.scwms-page .scwms-section[data-section="despacho"] [data-dispatch-channel="flex"] .scwms-dispatch-channel-head h2{
  color:#171a20!important;
}
body.scwms-page .scwms-section[data-section="despacho"] [data-dispatch-channel="flex"] .scwms-dispatch-channel-section,
body.scwms-page .scwms-section[data-section="despacho"] [data-dispatch-channel="flex"]{
  --scwms-dispatch-accent:#e11d2e;
}
body.scwms-page .scwms-section[data-section="despacho"] [data-dispatch-channel="colecta"] .scwms-dispatch-channel-section,
body.scwms-page .scwms-section[data-section="despacho"] [data-dispatch-channel="colecta"]{
  --scwms-dispatch-accent:#d69a14;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-section{
  position:relative;
  overflow:hidden;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-section:before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:4px;
  background:var(--scwms-dispatch-accent,#e5e7eb);
  opacity:.9;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini .scwms-cutoff-status,
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini .scwms-cutoff-badge{
  background:#eaf6ee!important;
  color:#11653a!important;
  border:1px solid #bfe4ca!important;
  box-shadow:none!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini.is-warn .scwms-cutoff-status,
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini.is-warn .scwms-cutoff-badge{
  background:#fff1c7!important;
  color:#8b5a00!important;
  border:1px solid #efcb78!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini.is-danger .scwms-cutoff-status,
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini.is-danger .scwms-cutoff-badge{
  background:#ffe1e3!important;
  color:#b31924!important;
  border:1px solid #f2b3b8!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini.is-muted .scwms-cutoff-status,
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini.is-muted .scwms-cutoff-badge{
  background:#eef2f6!important;
  color:#556171!important;
  border:1px solid #dde3ea!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>small{
  text-shadow:none!important;
}


/* v0.11.35 · conciliación separada Flex / Colecta */
body.scwms-page .scwms-home-reconcile{align-items:center}
body.scwms-page .scwms-home-reconcile-main{min-width:0;flex:1}
body.scwms-page .scwms-home-reconcile-channels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
body.scwms-page .scwms-home-reconcile-channel{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding:10px 12px;border:1px solid #e3e7ec;border-radius:12px;background:#f8fafb}
body.scwms-page .scwms-home-reconcile-channel>span{display:inline-flex;align-items:center;justify-content:center;min-width:72px;min-height:30px;padding:0 10px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.05em}
body.scwms-page .scwms-home-reconcile-channel>strong{font-size:10.5px;line-height:1.4;color:#566170;font-weight:650}
body.scwms-page .scwms-home-reconcile-channel>strong>b{font-size:12px;color:#171a20;font-weight:900}
body.scwms-page .scwms-home-reconcile-channel.is-flex>span{background:#fff0f1;color:#c91d29;border:1px solid #ffd5d8}
body.scwms-page .scwms-home-reconcile-channel.is-colecta>span{background:#fff7e7;color:#8d5a00;border:1px solid #f0d28c}
@media(max-width:900px){body.scwms-page .scwms-home-reconcile{align-items:stretch}body.scwms-page .scwms-home-reconcile-channels{grid-template-columns:1fr}body.scwms-page .scwms-home-reconcile>.scwms-home-mini-link{align-self:flex-end}}
@media(max-width:620px){body.scwms-page .scwms-home-reconcile-channel{grid-template-columns:1fr;gap:7px}body.scwms-page .scwms-home-reconcile-channel>span{justify-self:start}.scwms-home-reconcile-channel>strong{font-size:10px}}


/* v0.11.36 · Modales más limpios + Canceladas conserva comportamiento 0.11.30 */
body.scwms-page .scwms-home-audit-modal{
  background:rgba(15,23,42,.16)!important;
  backdrop-filter:blur(2.5px) saturate(1.03);
  -webkit-backdrop-filter:blur(2.5px) saturate(1.03);
}
body.scwms-page .scwms-home-audit-dialog{
  border:1px solid #e3e7ec!important;
  box-shadow:0 28px 80px rgba(15,23,42,.16)!important;
  background:#fff!important;
}
body.scwms-page .scwms-home-audit-dialog::-webkit-scrollbar{width:8px}
body.scwms-page .scwms-home-audit-dialog::-webkit-scrollbar-track{background:transparent}
body.scwms-page .scwms-home-audit-dialog::-webkit-scrollbar-thumb{background:#cbd2da;border-radius:999px}
body.scwms-page .scwms-collecta-modal{
  background:rgba(15,23,42,.16)!important;
  backdrop-filter:blur(2.5px) saturate(1.03);
  -webkit-backdrop-filter:blur(2.5px) saturate(1.03);
}
body.scwms-page .scwms-collecta-modal-card{
  border:1px solid #e3e7ec!important;
  box-shadow:0 28px 80px rgba(15,23,42,.16)!important;
  background:#fff!important;
}
body.scwms-page .scwms-collecta-modal-card::-webkit-scrollbar{width:8px}
body.scwms-page .scwms-collecta-modal-card::-webkit-scrollbar-track{background:transparent}
body.scwms-page .scwms-collecta-modal-card::-webkit-scrollbar-thumb{background:#cbd2da;border-radius:999px}
body.scwms-page .scwms-collecta-empty,
body.scwms-page .scwms-collecta-loading{
  background:#fff!important;
  border-color:#dfe4ea!important;
}
@media(max-width:680px){
  body.scwms-page .scwms-home-audit-modal,
  body.scwms-page .scwms-collecta-modal{padding:12px!important}
}


/* v0.11.37 · ME1 integrado al Historial */
.scwms-history-table tr.is-me1 td{background:#fbfdfc}
.scwms-history-table tr.is-me1:hover td{background:#f4fbf6}
.scwms-history-me1-cell{display:flex;align-items:center;gap:9px;min-width:0}
.scwms-history-me1-cell .scwms-pill{font-size:9px;flex:0 0 auto}
.scwms-history-me1-cell b{font-size:13px;word-break:break-word}

/* v0.11.38 · Historial: filtro único + modales más limpios */
body.scwms-page .scwms-history-primary-row{align-items:center!important}
body.scwms-page .scwms-history-primary-row .scwms-history-primary-select{min-width:180px!important}
body.scwms-page .scwms-modal{background:rgba(12,16,24,.24)!important;-webkit-backdrop-filter:blur(5px)!important;backdrop-filter:blur(5px)!important}
body.scwms-page .scwms-modal.is-open{display:flex!important;opacity:1!important;visibility:visible!important}
body.scwms-page .scwms-modal-card{background:#fff!important;border:1px solid rgba(223,228,236,.95)!important;box-shadow:0 28px 80px rgba(15,23,42,.18)!important}
body.scwms-page .scwms-history-detail-modal{z-index:100200!important;align-items:center!important;justify-content:center!important;padding:24px!important;overflow:auto!important}
body.scwms-page .scwms-history-detail-modal-card{width:min(1320px,94vw)!important;max-width:1320px!important;max-height:90vh!important;border-radius:22px!important;padding:28px!important;overflow:hidden!important}
body.scwms-page .scwms-history-detail-scroll{max-height:calc(90vh - 130px)!important;overflow:auto!important;padding-right:8px!important}
body.scwms-page .scwms-history-detail-head{padding-right:56px!important}
body.scwms-page .scwms-history-detail-head h2{font-size:32px!important;line-height:1.05!important}
body.scwms-page .scwms-history-detail-head p{font-size:14px!important;line-height:1.4!important}
body.scwms-page .scwms-history-detail-head #scwms-history-close-detail{background:#f3f5f8!important;border:1px solid #e2e7ef!important;color:#161b23!important;border-radius:12px!important}

/* v0.11.39 · Colecta modal más limpio, sin recuadros duros */
body.scwms-page .scwms-collecta-modal-card{
  width:min(900px,94vw)!important;
  max-width:900px!important;
  padding:34px 34px 30px!important;
  border-radius:26px!important;
}
body.scwms-page .scwms-collecta-modal-card h2{
  margin:16px 0 8px!important;
  font-size:38px!important;
  line-height:1.08!important;
  letter-spacing:-.03em!important;
}
body.scwms-page .scwms-collecta-modal-card .scwms-collecta-modal-copy{
  margin:0 0 18px!important;
  font-size:15px!important;
  color:#6b7480!important;
}
body.scwms-page .scwms-collecta-list{gap:16px!important}
body.scwms-page .scwms-collecta-empty,
body.scwms-page .scwms-collecta-loading{
  min-height:170px!important;
  border:none!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:28px 10px 18px!important;
  color:#6b7480!important;
}
body.scwms-page .scwms-collecta-empty b{
  font-size:18px!important;
  margin-bottom:8px!important;
}
body.scwms-page .scwms-collecta-empty span{
  max-width:640px!important;
  font-size:14px!important;
  line-height:1.5!important;
}
body.scwms-page .scwms-collecta-item{
  border:none!important;
  background:#f8fafc!important;
  box-shadow:none!important;
  border-radius:20px!important;
  padding:20px!important;
}
body.scwms-page .scwms-collecta-item.is-single{
  background:linear-gradient(180deg,#fbfcfe 0%,#f8fafc 100%)!important;
}
body.scwms-page .scwms-collecta-meta>div{
  background:#ffffff!important;
  border:1px solid #e8edf3!important;
  border-radius:14px!important;
}
@media(max-width:680px){
  body.scwms-page .scwms-collecta-modal-card{padding:24px 18px 22px!important}
  body.scwms-page .scwms-collecta-modal-card h2{font-size:30px!important}
  body.scwms-page .scwms-collecta-empty,body.scwms-page .scwms-collecta-loading{padding:20px 4px 10px!important}
}

/* v0.11.40 · Ver colectas casi a pantalla completa, igual al modal de pedidos */
body.scwms-page .scwms-collecta-modal{
  align-items:flex-start!important;
  justify-content:center!important;
  padding:24px!important;
  overflow-y:auto!important;
}
body.scwms-page .scwms-collecta-modal-card{
  width:min(1500px,96vw)!important;
  max-width:1500px!important;
  min-height:min(760px,calc(100vh - 48px))!important;
  max-height:calc(100vh - 48px)!important;
  margin:auto!important;
  padding:34px 38px!important;
  border-radius:22px!important;
  overflow:auto!important;
  box-sizing:border-box!important;
}
body.scwms-page .scwms-collecta-modal-card h2{
  max-width:1100px!important;
  font-size:40px!important;
  line-height:1.08!important;
}
body.scwms-page .scwms-collecta-modal-card .scwms-collecta-modal-copy{
  max-width:1050px!important;
  font-size:16px!important;
}
body.scwms-page .scwms-collecta-list{
  width:100%!important;
  min-height:420px!important;
}
body.scwms-page .scwms-collecta-empty,
body.scwms-page .scwms-collecta-loading{
  min-height:420px!important;
  width:100%!important;
  box-sizing:border-box!important;
}
body.scwms-page .scwms-collecta-empty b{font-size:22px!important}
body.scwms-page .scwms-collecta-empty span{font-size:15px!important}
body.scwms-page .scwms-collecta-modal .scwms-modal-close{
  width:44px!important;
  height:44px!important;
  right:22px!important;
  top:20px!important;
  border-radius:12px!important;
  background:#f3f5f8!important;
  border:1px solid #e2e7ef!important;
  color:#161b23!important;
  display:grid!important;
  place-items:center!important;
  font-size:26px!important;
}
@media(max-width:680px){
  body.scwms-page .scwms-collecta-modal{padding:10px!important}
  body.scwms-page .scwms-collecta-modal-card{
    width:100%!important;
    max-width:none!important;
    min-height:calc(100dvh - 20px)!important;
    max-height:calc(100dvh - 20px)!important;
    border-radius:18px!important;
    padding:24px 18px!important;
  }
  body.scwms-page .scwms-collecta-modal-card h2{font-size:30px!important;padding-right:42px!important}
  body.scwms-page .scwms-collecta-list,body.scwms-page .scwms-collecta-empty,body.scwms-page .scwms-collecta-loading{min-height:52vh!important}
}


/* v0.11.41 · Colecta usa el mismo modal grande que Detalle del pedido */
#scwms-collecta-modal.scwms-modal{
  position:fixed!important;
  inset:0!important;
  z-index:100300!important;
  padding:24px!important;
  display:none;
  align-items:center!important;
  justify-content:center!important;
  overflow:auto!important;
  background:rgba(20,23,29,.58)!important;
  backdrop-filter:blur(3px)!important;
  -webkit-backdrop-filter:blur(3px)!important;
  box-sizing:border-box!important;
}
#scwms-collecta-modal.scwms-modal.is-open{display:flex!important}
#scwms-collecta-modal > .scwms-collecta-modal-card{
  width:min(1400px,calc(100vw - 48px))!important;
  max-width:1400px!important;
  min-height:min(760px,calc(100vh - 48px))!important;
  max-height:calc(100vh - 48px)!important;
  margin:auto!important;
  padding:30px!important;
  overflow:auto!important;
  border:1px solid #e3e6eb!important;
  border-radius:26px!important;
  background:#f8f9fb!important;
  box-shadow:0 32px 90px rgba(17,24,39,.24)!important;
  box-sizing:border-box!important;
}
#scwms-collecta-modal > .scwms-collecta-modal-card .scwms-modal-close{
  position:sticky!important;
  float:right!important;
  top:0!important;
  right:0!important;
  z-index:3!important;
  width:42px!important;
  height:42px!important;
  border-radius:12px!important;
  background:#fff!important;
  border:1px solid #e2e5ea!important;
  color:#69717d!important;
  display:grid!important;
  place-items:center!important;
  font-size:24px!important;
  line-height:1!important;
  box-shadow:0 6px 16px rgba(20,26,36,.06)!important;
}
#scwms-collecta-modal .scwms-collecta-modal-eyebrow{margin-top:2px!important}
#scwms-collecta-modal .scwms-collecta-modal-card h2{
  max-width:none!important;
  padding-right:64px!important;
  font-size:34px!important;
  margin:16px 0 7px!important;
}
#scwms-collecta-modal .scwms-collecta-modal-copy{font-size:15px!important;max-width:none!important}
#scwms-collecta-modal .scwms-collecta-list{min-height:0!important;margin-top:24px!important}
#scwms-collecta-modal .scwms-collecta-empty,
#scwms-collecta-modal .scwms-collecta-loading{
  min-height:420px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
@media(max-width:680px){
  #scwms-collecta-modal.scwms-modal{padding:8px!important}
  #scwms-collecta-modal > .scwms-collecta-modal-card{
    width:100%!important;
    max-width:none!important;
    min-height:calc(100dvh - 16px)!important;
    max-height:calc(100dvh - 16px)!important;
    padding:20px 15px!important;
    border-radius:20px!important;
  }
  #scwms-collecta-modal .scwms-collecta-modal-card h2{font-size:25px!important;padding-right:48px!important}
  #scwms-collecta-modal .scwms-collecta-empty,#scwms-collecta-modal .scwms-collecta-loading{min-height:55vh!important}
}


/* v0.11.42 · Colecta usa literalmente el componente de Detalle del pedido */
#scwms-collecta-modal .scwms-collecta-list{width:100%;display:grid;gap:14px;margin-top:2px}
#scwms-collecta-modal .scwms-collecta-loading,
#scwms-collecta-modal .scwms-collecta-empty{
  min-height:260px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:32px 12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-direction:column!important;
  text-align:center!important;
}
#scwms-collecta-modal .scwms-collecta-empty b{font-size:18px!important;color:#1b2430!important}
#scwms-collecta-modal .scwms-collecta-empty span{font-size:14px!important;color:#717b87!important;line-height:1.5!important}
#scwms-collecta-modal .scwms-collecta-item{
  border:1px solid #e4e8ee!important;
  background:#fff!important;
  border-radius:18px!important;
  box-shadow:0 8px 24px rgba(17,24,39,.04)!important;
}

/* v0.11.43 · ME1 e Historial usan exactamente el shell de Detalle del pedido */
body.scwms-page #scwms-order-history-detail .scwms-history-detail-scroll{
  max-height:none!important;
  overflow:visible!important;
  padding-right:0!important;
  margin:0!important;
}
body.scwms-page #scwms-order-history-detail .scwms-history-facts{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  margin-top:0!important;
}
body.scwms-page #scwms-order-history-detail .scwms-history-facts>div{
  min-height:86px!important;
  padding:14px 16px!important;
  border-radius:18px!important;
  background:#fafbfc!important;
  border:1px solid var(--sc-border)!important;
}
body.scwms-page #scwms-order-history-detail .scwms-history-facts small{
  font-size:12px!important;
  font-weight:700!important;
  text-transform:uppercase!important;
  letter-spacing:.03em!important;
  color:var(--sc-muted)!important;
}
body.scwms-page #scwms-order-history-detail .scwms-history-facts b{
  font-size:16px!important;
  line-height:1.25!important;
  color:var(--sc-text)!important;
}
body.scwms-page #scwms-order-history-detail .scwms-history-stages{
  margin-top:0!important;
  gap:12px!important;
}
body.scwms-page #scwms-order-history-detail .scwms-history-stage{
  border-radius:18px!important;
  padding:16px!important;
}
body.scwms-page #scwms-order-history-detail .scwms-history-stage h4{font-size:15px!important}
body.scwms-page #scwms-order-history-detail .scwms-history-stage p{font-size:12px!important;line-height:1.4!important}
body.scwms-page #scwms-order-history-detail .scwms-history-stage em{font-size:10px!important}
body.scwms-page #scwms-order-history-detail .scwms-history-subtitle{font-size:18px!important;margin-bottom:12px!important}
body.scwms-page #scwms-order-history-detail .scwms-history-problem{border-radius:16px!important;padding:14px!important}
body.scwms-page #scwms-order-history-detail .scwms-history-problem b{font-size:13px!important}
body.scwms-page #scwms-order-history-detail .scwms-history-problem p{font-size:12px!important}
body.scwms-page #scwms-order-history-detail .scwms-history-problem small{font-size:10px!important}
body.scwms-page #scwms-order-history-detail .scwms-history-activity-row{grid-template-columns:14px 145px minmax(0,1fr)!important;padding:12px 0!important}
body.scwms-page #scwms-order-history-detail .scwms-history-activity-row time{font-size:11px!important}
body.scwms-page #scwms-order-history-detail .scwms-history-activity-row b{font-size:13px!important}
body.scwms-page #scwms-order-history-detail .scwms-history-activity-row small{font-size:11px!important}
body.scwms-page #scwms-me1-detail-modal .scwms-me1-detail-body{margin-top:4px!important}
body.scwms-page #scwms-me1-detail-modal .scwms-me1-detail-list{gap:10px!important}
body.scwms-page #scwms-me1-detail-modal .scwms-me1-detail-row{
  padding:16px!important;
  border-radius:16px!important;
  border:1px solid var(--sc-border)!important;
  background:#fff!important;
}
body.scwms-page #scwms-me1-detail-modal .scwms-me1-detail-main span{font-size:10px!important}
body.scwms-page #scwms-me1-detail-modal .scwms-me1-detail-main strong{font-size:16px!important}
body.scwms-page #scwms-me1-detail-modal .scwms-me1-detail-meta b{font-size:13px!important}
body.scwms-page #scwms-me1-detail-modal .scwms-me1-detail-meta small{font-size:11px!important}
@media(max-width:980px){
  body.scwms-page #scwms-order-history-detail .scwms-history-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:640px){
  body.scwms-page #scwms-order-history-detail .scwms-history-facts{grid-template-columns:1fr!important}
  body.scwms-page #scwms-order-history-detail .scwms-history-activity-row{grid-template-columns:14px 1fr!important}
  body.scwms-page #scwms-order-history-detail .scwms-history-activity-row time,
  body.scwms-page #scwms-order-history-detail .scwms-history-activity-row>div{grid-column:2!important}
}


/* v0.11.45 · lector de etiquetas más oscuro y mejor integrado */
body.scwms-page .scwms-section[data-section="despacho"] .scwms-label-reader-section .scwms-unified-label-detector{
  position:relative;
  overflow:hidden;
  margin:0 0 18px!important;
  padding:28px 30px 30px!important;
  border:1px solid #d8dee7!important;
  border-left:4px solid #e11d2e!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f6f8fb 100%)!important;
  box-shadow:0 18px 46px rgba(15,23,42,.10)!important;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}

body.scwms-page .scwms-section[data-section="despacho"] .scwms-label-reader-section .scwms-unified-label-detector:focus-within{
  background:linear-gradient(180deg,#fff7f8 0%,#fff0f2 100%)!important;
  border-color:#ff9aa8!important;
  border-left-color:#e11d2e!important;
  box-shadow:0 18px 46px rgba(225,29,46,.12),0 0 0 3px rgba(225,29,46,.06)!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-label-reader-section .scwms-unified-label-detector:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(225,29,46,.18),transparent);
  pointer-events:none;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-unified-label-detector .scwms-me1-detector-copy{
  margin-bottom:24px!important;
  text-align:center!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-unified-label-detector .scwms-me1-detector-copy h3{
  margin:0!important;
  color:#111827!important;
  font-size:27px!important;
  font-weight:900!important;
  letter-spacing:-.025em!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-unified-label-detector .scwms-me1-scan-row{
  max-width:1040px!important;
  margin:0 auto!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-unified-label-detector .scwms-me1-scan-row input{
  height:68px!important;
  border:2px solid #ff3148!important;
  border-radius:16px!important;
  background:#ffffff!important;
  color:#111827!important;
  padding:0 22px!important;
  font-size:17px!important;
  font-weight:800!important;
  caret-color:#ff3148!important;
  box-shadow:0 0 0 4px rgba(255,49,72,.08),0 10px 24px rgba(15,23,42,.08)!important;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-unified-label-detector .scwms-me1-scan-row input::placeholder{
  color:#d7192d!important;
  opacity:1!important;
  text-shadow:none!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-unified-label-detector .scwms-me1-scan-row input:focus{
  border-color:#ff3148!important;
  box-shadow:0 0 0 5px rgba(255,49,72,.16),0 14px 30px rgba(15,23,42,.12)!important;
  background:#fff0f2!important;
  color:#9f1239!important;
}
body.scwms-page .scwms-section[data-section="despacho"] .scwms-unified-label-detector .scwms-me1-detect-result{
  margin:16px auto 0!important;
  max-width:1040px!important;
}
@media(max-width:680px){
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-label-reader-section .scwms-unified-label-detector{
    padding:22px 16px 20px!important;
    border-radius:18px!important;
  }
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-unified-label-detector .scwms-me1-detector-copy h3{
    font-size:23px!important;
  }
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-unified-label-detector .scwms-me1-scan-row input{
    height:62px!important;
    font-size:15px!important;
  }
}


/* v0.11.48 · Conciliación: mismo componente base que Detalle del pedido */
body.scwms-page #scwms-home-audit-modal .scwms-home-audit-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0}
body.scwms-page #scwms-home-audit-modal .scwms-home-audit-filters button{border:1px solid #d0d5dd;background:#fff;color:#475467;border-radius:999px;padding:10px 14px;font-size:11px;font-weight:800;cursor:pointer;transition:.18s ease}
body.scwms-page #scwms-home-audit-modal .scwms-home-audit-filters button.is-active{background:#111827;color:#fff;border-color:#111827}
body.scwms-page #scwms-home-audit-modal .scwms-home-audit-table-wrap{background:#fff;border:1px solid #dfe3e8;border-radius:20px;overflow:auto}
body.scwms-page #scwms-home-audit-modal .scwms-home-audit-table{min-width:760px}
body.scwms-page #scwms-home-audit-modal .scwms-home-audit-table thead th{white-space:nowrap}
body.scwms-page #scwms-home-audit-modal .scwms-home-audit-table tbody td{vertical-align:middle}


/* v0.11.49 · Historial toolbar: 3 columnas reales, sin controles encimados */
body.scwms-page .scwms-history-primary-row{
  display:grid!important;
  grid-template-columns:minmax(420px,1fr) 220px max-content!important;
  gap:14px!important;
  align-items:center!important;
}
body.scwms-page .scwms-history-primary-row .scwms-history-main-search{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
}
body.scwms-page .scwms-history-primary-row .scwms-history-primary-select{
  width:220px!important;
  min-width:220px!important;
  height:52px!important;
  margin:0!important;
  border-radius:14px!important;
  padding:0 14px!important;
  font-size:11px!important;
}
body.scwms-page .scwms-history-primary-row>.scwms-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  width:auto!important;
  min-width:max-content!important;
  margin:0!important;
}
body.scwms-page .scwms-history-primary-row>.scwms-actions .scwms-btn{
  flex:0 0 auto!important;
  min-height:52px!important;
  height:52px!important;
  margin:0!important;
  padding:0 18px!important;
  white-space:nowrap!important;
  border-radius:14px!important;
}
@media(max-width:1100px){
  body.scwms-page .scwms-history-primary-row{
    grid-template-columns:minmax(0,1fr) max-content!important;
  }
  body.scwms-page .scwms-history-primary-row .scwms-history-main-search{
    grid-column:1/-1!important;
  }
  body.scwms-page .scwms-history-primary-row .scwms-history-primary-select{
    width:100%!important;
    min-width:0!important;
  }
}
@media(max-width:680px){
  body.scwms-page .scwms-history-primary-row{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  body.scwms-page .scwms-history-primary-row .scwms-history-main-search,
  body.scwms-page .scwms-history-primary-row .scwms-history-primary-select,
  body.scwms-page .scwms-history-primary-row>.scwms-actions{
    grid-column:auto!important;
    width:100%!important;
  }
  body.scwms-page .scwms-history-primary-row>.scwms-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    min-width:0!important;
  }
  body.scwms-page .scwms-history-primary-row>.scwms-actions .scwms-btn{
    width:100%!important;
    padding:0 10px!important;
  }
}


/* v0.11.53 · Pedidos: filtro por estado */
body.scwms-page .scwms-orders-state-picker-wrap{
  display:grid!important;
  gap:7px!important;
  min-width:230px!important;
  width:100%!important;
  align-self:end!important;
}
body.scwms-page .scwms-orders-state-filter{
  width:100%!important;
  min-width:230px!important;
  height:44px!important;
  border:1px solid #d8dee6!important;
  border-radius:14px!important;
  background:#fff!important;
  padding:0 38px 0 14px!important;
  color:#273142!important;
  font:700 12px Inter,sans-serif!important;
  outline:0!important;
  box-sizing:border-box!important;
}
body.scwms-page .scwms-orders-state-filter:focus{border-color:#e24b4f!important;box-shadow:0 0 0 3px rgba(226,75,79,.07)!important}
body.scwms-page .scwms-unified-orders-toolbar .scwms-orders-state-picker-wrap{grid-column:4!important;grid-row:1!important}
@media(max-width:1300px){
  body.scwms-page .scwms-unified-orders-toolbar .scwms-orders-state-picker-wrap{grid-column:2!important;grid-row:2!important;min-width:0!important;width:100%!important}
  body.scwms-page .scwms-orders-state-filter{min-width:0!important}
}
@media(max-width:760px){
  body.scwms-page .scwms-unified-orders-toolbar .scwms-orders-state-picker-wrap{grid-column:1!important;grid-row:auto!important;width:100%!important;min-width:0!important}
}


/* v0.11.58 · atrasados resueltos separados de la conciliación del día */
body.scwms-page .scwms-home-reconcile-late{margin-top:10px;display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #f0d28c;border-radius:14px;background:#fff8e8}
body.scwms-page .scwms-home-reconcile-late[hidden]{display:none!important}
body.scwms-page .scwms-home-reconcile-late>span{display:inline-flex;align-items:center;justify-content:center;min-width:150px;padding:7px 10px;border-radius:999px;background:#fff0c7;color:#8d5a00;font-size:10px;font-weight:900;letter-spacing:.04em}
body.scwms-page .scwms-home-reconcile-late>strong{font-size:12px;color:#5d6673;font-weight:800}
body.scwms-page .scwms-home-reconcile-late>strong b{font-size:13px;color:#8d5a00}
@media(max-width:620px){body.scwms-page .scwms-home-reconcile-late{align-items:flex-start;flex-direction:column;gap:7px}}


/* v0.11.59 · Preparación separa hoy / atrasados y adelanto estricto de mañana */
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
}
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi.overdue{
  background:linear-gradient(180deg,#fff8f8 0%,#ffffff 100%)!important;
}
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi.overdue:before{
  background:linear-gradient(90deg,#ffb7bd 0%,#d32027 100%)!important;
}
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi.overdue strong{color:#b61d25!important}
body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi.overdue .scwms-kpi-icon{background:#fff0f1!important;color:#d32027!important}

body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
@media(max-width:1300px){body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:930px){body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis{grid-template-columns:1fr!important}}




/* v0.11.64 · Supervisión operativa simplificada */
.scwms-ops-elapsed{margin-top:8px;font-size:8px;color:#818a96;font-weight:700}


/* v0.11.65 · Inicio: 4 KPIs ocupan todo el ancho sin columna vacía */
body.scwms-page .scwms-home-kpis-today{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:20px!important;
}
body.scwms-page .scwms-home-kpis-today .scwms-home-kpi{
  width:100%!important;
  min-width:0!important;
  padding-left:24px!important;
  padding-right:24px!important;
}
@media(max-width:1300px){
  body.scwms-page .scwms-home-kpis-today{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
  body.scwms-page .scwms-home-kpis-today{grid-template-columns:1fr!important;gap:12px!important}
}

/* v0.11.66 · Ventas agrupadas por envío/paquete */
body.scwms-page .scwms-grouped-sales-note{
  display:block;
  margin-top:5px;
  color:#7a8493;
  font-size:11px;
  font-weight:700;
  line-height:1.25;
}


/* v0.11.67 · ME1: solapas por mensajería y eliminación autorizada */
body.scwms-page .scwms-me1-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}
body.scwms-page .scwms-me1-tab{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:10px 14px;border:1px solid #dfe4eb;border-radius:14px;background:#fff;color:#4b5563;font:800 12px Inter,system-ui,sans-serif;cursor:pointer;transition:.16s ease}
body.scwms-page .scwms-me1-tab b{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 7px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:11px}
body.scwms-page .scwms-me1-tab:hover{border-color:#ef9ca2;transform:translateY(-1px)}
body.scwms-page .scwms-me1-tab.is-active{background:#171b23;border-color:#171b23;color:#fff;box-shadow:0 8px 24px rgba(17,24,39,.12)}
body.scwms-page .scwms-me1-tab.is-active b{background:#fff;color:#171b23}
body.scwms-page .scwms-me1-delete-icon{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #f0a0a5;background:#fff;color:#c91f2d;border-radius:11px;cursor:pointer;transition:all .18s ease}
body.scwms-page .scwms-me1-delete-icon svg{width:16px;height:16px}
body.scwms-page .scwms-me1-delete-icon:hover{background:#fff1f2;border-color:#e11d2e;transform:translateY(-1px)}
body.scwms-page .scwms-me1-delete-icon:disabled,body.scwms-page .scwms-me1-delete-icon.is-busy{opacity:.55;cursor:wait;transform:none}
@media(max-width:760px){body.scwms-page .scwms-me1-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* v0.11.71 · Detalle por cada card de Despacho */
body.scwms-page .scwms-dispatch-detail-card{cursor:pointer;position:relative;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
body.scwms-page .scwms-dispatch-detail-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(17,24,39,.10);border-color:#ef9aa2}
body.scwms-page .scwms-dispatch-detail-card:focus-visible{outline:3px solid rgba(225,29,46,.20);outline-offset:2px}
body.scwms-page .scwms-dispatch-kpi-detail{display:block;margin-top:8px;padding:0;border:0;background:transparent;color:#c81e2b;font:800 10px Inter,system-ui,sans-serif;pointer-events:none}
body.scwms-page #scwms-dispatch-detail-modal{z-index:470}
body.scwms-page .scwms-dispatch-detail-list{min-width:0}
body.scwms-page .scwms-dispatch-detail-table-wrap{border:1px solid #e2e6eb;border-radius:18px;background:#fff;overflow:auto}
body.scwms-page .scwms-dispatch-detail-table{min-width:820px;margin:0}
body.scwms-page .scwms-dispatch-detail-table th{white-space:nowrap}
body.scwms-page .scwms-dispatch-detail-table td{vertical-align:middle}


/* v0.11.72 · Conciliación: cada pedido abre el mismo detalle de Pedidos */
body.scwms-page .scwms-home-audit-table tbody tr.scwms-home-audit-order{cursor:pointer;transition:background .16s ease,box-shadow .16s ease}
body.scwms-page .scwms-home-audit-table tbody tr.scwms-home-audit-order:hover{background:#f8fafc!important;box-shadow:inset 3px 0 0 #e11d2e}
body.scwms-page .scwms-home-audit-table tbody tr.scwms-home-audit-order:focus{outline:2px solid rgba(225,29,46,.32);outline-offset:-2px;background:#fff8f8!important}
body.scwms-page .scwms-home-audit-table tbody tr.scwms-home-audit-order td:first-child b{text-decoration:none}
body.scwms-page .scwms-home-audit-table tbody tr.scwms-home-audit-order:hover td:first-child b{color:#c81e2b}


/* v0.11.76 · Auditoría de etiquetas duplicadas */
body.scwms-page [data-config="notifications"] textarea{width:100%;min-height:96px;resize:vertical;box-sizing:border-box;border:1px solid #d7dce3;border-radius:12px;padding:11px 12px;background:#fff;color:#111827;font:600 13px Inter,system-ui,sans-serif}
body.scwms-page [data-config="notifications"] textarea:focus{outline:none;border-color:#e11d2e;box-shadow:0 0 0 3px rgba(225,29,46,.08)}

body.scwms-page .scwms-dispatch-picked-now{display:block;margin-top:6px;color:#667085;font-size:10px;font-weight:700}

/* v0.11.78 · Duplicados como módulo independiente */
body.scwms-page .scwms-duplicates-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}
body.scwms-page .scwms-duplicates-kpi{padding:22px 24px;min-height:130px;display:flex;flex-direction:column;justify-content:center}
body.scwms-page .scwms-duplicates-kpi small{font-size:10px;font-weight:900;letter-spacing:.08em;color:#7b8491}
body.scwms-page .scwms-duplicates-kpi strong{font-size:38px;line-height:1;margin:10px 0 7px;color:#111827}
body.scwms-page .scwms-duplicates-kpi span{font-size:12px;color:#718096}
body.scwms-page .scwms-duplicates-mail-panel{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(480px,1.4fr);gap:28px;align-items:center;margin-bottom:18px;padding:24px}
body.scwms-page .scwms-duplicates-mail-copy small{font-size:10px;font-weight:900;color:#c91f2d;letter-spacing:.08em}
body.scwms-page .scwms-duplicates-mail-copy h3{font-size:20px;margin:6px 0 5px}.scwms-duplicates-mail-copy p{margin:0;color:#6b7280;font-size:12px;line-height:1.5}
body.scwms-page .scwms-duplicates-mail-controls{display:grid;grid-template-columns:auto minmax(280px,1fr) auto;gap:12px;align-items:center}
body.scwms-page .scwms-duplicates-mail-controls textarea{min-height:58px;resize:vertical;border:1px solid #d6dce4;border-radius:12px;padding:12px 14px;font:600 12px Inter,system-ui;background:#fff;color:#111827}
body.scwms-page .scwms-duplicates-toolbar{margin-bottom:18px;padding:18px 20px}
body.scwms-page .scwms-duplicates-filters{display:grid;grid-template-columns:190px 220px minmax(320px,1fr) auto;gap:12px;align-items:end}
body.scwms-page .scwms-duplicates-filters label{display:grid;gap:6px;font-size:10px;font-weight:800;color:#667085;text-transform:uppercase;letter-spacing:.04em}
body.scwms-page .scwms-duplicates-filters input,body.scwms-page .scwms-duplicates-filters select{height:46px;border:1px solid #d7dde5;border-radius:12px;padding:0 13px;background:#fff;font:600 12px Inter,system-ui;color:#1f2937}
body.scwms-page .scwms-duplicates-filter-actions{display:flex;gap:8px}
body.scwms-page .scwms-duplicates-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:14px}
body.scwms-page .scwms-duplicates-head h2{margin:0 0 4px;font-size:20px}.scwms-duplicates-head p{margin:0;color:#6b7280;font-size:12px}.scwms-duplicates-head>b{font-size:12px;color:#475467}
body.scwms-page .scwms-section[data-section="duplicados"] .scwms-table-wrap{width:100%;max-width:100%;overflow-x:hidden!important}
body.scwms-page .scwms-duplicates-table{width:100%;min-width:0!important;table-layout:fixed}
body.scwms-page .scwms-duplicates-table th,body.scwms-page .scwms-duplicates-table td{vertical-align:middle;padding:11px 10px!important;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.28}
body.scwms-page .scwms-duplicates-table th{font-size:10px!important}
body.scwms-page .scwms-duplicates-table td{font-size:11px!important}
body.scwms-page .scwms-duplicates-table th:nth-child(1),body.scwms-page .scwms-duplicates-table td:nth-child(1){width:10%}
body.scwms-page .scwms-duplicates-table th:nth-child(2),body.scwms-page .scwms-duplicates-table td:nth-child(2){width:15%}
body.scwms-page .scwms-duplicates-table th:nth-child(3),body.scwms-page .scwms-duplicates-table td:nth-child(3){width:13%}
body.scwms-page .scwms-duplicates-table th:nth-child(4),body.scwms-page .scwms-duplicates-table td:nth-child(4){width:14%}
body.scwms-page .scwms-duplicates-table th:nth-child(5),body.scwms-page .scwms-duplicates-table td:nth-child(5){width:12%}
body.scwms-page .scwms-duplicates-table th:nth-child(6),body.scwms-page .scwms-duplicates-table td:nth-child(6){width:14%}
body.scwms-page .scwms-duplicates-table th:nth-child(7),body.scwms-page .scwms-duplicates-table td:nth-child(7){width:12%}
body.scwms-page .scwms-duplicates-table th:nth-child(8),body.scwms-page .scwms-duplicates-table td:nth-child(8){width:10%;text-align:center}
body.scwms-page .scwms-duplicates-table .scwms-history-open{max-width:100%;padding:7px 8px;font-size:10px;white-space:normal}
body.scwms-page .scwms-duplicates-table .scwms-dup-order-nowrap{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
@media(max-width:1200px){body.scwms-page .scwms-duplicates-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}body.scwms-page .scwms-duplicates-table th{font-size:9px!important}body.scwms-page .scwms-duplicates-table td{font-size:10px!important;padding:9px 7px!important}}
@media(max-width:1100px){body.scwms-page .scwms-duplicates-mail-panel{grid-template-columns:1fr}.scwms-duplicates-mail-controls{grid-template-columns:1fr!important}.scwms-duplicates-filters{grid-template-columns:1fr 1fr!important}.scwms-duplicates-search{grid-column:1/-1}}
@media(max-width:700px){body.scwms-page .scwms-duplicates-kpis{grid-template-columns:1fr}.scwms-duplicates-filters{grid-template-columns:1fr!important}.scwms-duplicates-filter-actions{flex-wrap:wrap}}

/* v0.11.82 */
body.scwms-page .scwms-home-reconcile-note{display:block;margin-top:8px;color:#768196;font-size:11px;font-weight:600}

/* v0.11.89 · Movimiento del pedido: fecha y usuario separados y legibles */
body.scwms-page .scwms-order-detail-movement .scwms-order-detail-me-row{
  grid-template-columns:minmax(150px,42%) minmax(0,1fr)!important;
  gap:22px!important;
  align-items:start!important;
  padding:12px 0!important;
}
body.scwms-page .scwms-order-detail-movement .scwms-order-detail-me-row>span{
  padding-top:2px!important;
}
body.scwms-page .scwms-order-detail-movement-value{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:6px!important;
  min-width:0!important;
}
body.scwms-page .scwms-order-detail-movement-value b{
  display:block!important;
  line-height:1.25!important;
  margin:0!important;
  white-space:nowrap!important;
}
body.scwms-page .scwms-order-detail-movement-value small{
  display:block!important;
  margin:0!important;
  color:#728096!important;
  font-size:11px!important;
  line-height:1.3!important;
}
@media(max-width:560px){
  body.scwms-page .scwms-order-detail-movement .scwms-order-detail-me-row{
    grid-template-columns:1fr!important;
    gap:6px!important;
  }
}

/* v0.11.91 · auditoría de tareas abiertas de Preparación */
body.scwms-page .scwms-kpi-clickable{cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
body.scwms-page .scwms-kpi-clickable:hover{transform:translateY(-2px);box-shadow:0 16px 35px rgba(18,24,35,.10);border-color:#ef9aa0}
body.scwms-page .scwms-kpi-clickable:focus-visible{outline:3px solid rgba(215,31,43,.22);outline-offset:3px}
body.scwms-page .scwms-picking-panel-actions{display:flex;align-items:center;gap:10px}
body.scwms-page .scwms-picking-open-body{margin-top:22px}
body.scwms-page .scwms-picking-open-summary{display:flex;align-items:baseline;gap:7px;margin:0 0 12px;color:#667085}
body.scwms-page .scwms-picking-open-summary b{font-size:24px;color:#161a22}
body.scwms-page .scwms-picking-open-table{width:100%;table-layout:fixed}
body.scwms-page .scwms-picking-open-table th,body.scwms-page .scwms-picking-open-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
body.scwms-page .scwms-picking-open-table th:nth-child(1){width:13%}body.scwms-page .scwms-picking-open-table th:nth-child(2){width:12%}body.scwms-page .scwms-picking-open-table th:nth-child(3){width:9%}body.scwms-page .scwms-picking-open-table th:nth-child(4){width:13%}body.scwms-page .scwms-picking-open-table th:nth-child(5){width:11%}body.scwms-page .scwms-picking-open-table th:nth-child(6){width:14%}body.scwms-page .scwms-picking-open-table th:nth-child(7){width:17%}body.scwms-page .scwms-picking-open-table th:nth-child(8){width:11%}
body.scwms-page .scwms-picking-task-duplicates{display:block;margin-top:4px;color:#c16a00;font-size:10px;font-weight:800}
@media(max-width:980px){body.scwms-page .scwms-picking-panel-actions{flex-wrap:wrap;justify-content:flex-end}body.scwms-page .scwms-picking-open-table{min-width:920px;table-layout:auto}}


/* v0.11.99 · separar Guardar edición de Reconfirmar transporte */
body.scwms-page .scwms-admin-collecta-card>footer.scwms-admin-reconfirm-zone{
  margin-top:20px;padding:16px 17px;border:1px solid #efd7a8;border-radius:14px;
  background:#fffaf0;display:flex;justify-content:space-between;align-items:center;gap:18px;
  color:#59616d;font-size:11px;
}
body.scwms-page .scwms-admin-reconfirm-copy{display:grid;gap:3px;min-width:0}
body.scwms-page .scwms-admin-reconfirm-copy small{font-size:9px;font-weight:900;letter-spacing:.08em;color:#9a6200}
body.scwms-page .scwms-admin-reconfirm-copy b{font-size:12px;color:#2b3038}
body.scwms-page .scwms-admin-reconfirm-copy span{font-size:10px;line-height:1.4;color:#747d88}
body.scwms-page .scwms-reconfirm-action{flex:0 0 auto!important;background:#fff!important;color:#9a6200!important;border:1px solid #dfb660!important;box-shadow:none!important}
body.scwms-page .scwms-reconfirm-action:hover:not(:disabled){background:#fff3d9!important;border-color:#cf9d36!important}
body.scwms-page .scwms-reconfirm-action.is-due{background:#b86b00!important;color:#fff!important;border-color:#b86b00!important}
body.scwms-page .scwms-reconfirm-action:disabled{opacity:.52!important;cursor:not-allowed!important}
body.scwms-page .scwms-collecta-admin-footer{padding:15px 18px;border-color:#d9dde3}
body.scwms-page .scwms-collecta-save-copy{display:grid!important;gap:2px;min-width:0}
body.scwms-page .scwms-collecta-save-copy small{font-size:9px!important;font-weight:900;letter-spacing:.08em;color:#b21f28!important}
body.scwms-page .scwms-collecta-save-copy b{font-size:12px;color:#252b33}
body.scwms-page .scwms-collecta-save-copy span{font-size:10px;color:#7a838f}
body.scwms-page #scwms-collecta-admin-save{min-width:150px}
@media(max-width:700px){
  body.scwms-page .scwms-admin-collecta-card>footer.scwms-admin-reconfirm-zone{align-items:stretch;flex-direction:column}
  body.scwms-page .scwms-reconfirm-action{width:100%}
  body.scwms-page .scwms-collecta-admin-footer{align-items:stretch;flex-direction:column}
  body.scwms-page #scwms-collecta-admin-save{width:100%}
}

/* v0.12.01 · cancelación posterior a Pickeados WMS */
body.scwms-page .scwms-picked-cancel-modal{position:fixed;inset:0;z-index:100000;background:rgba(17,24,39,.58);display:grid;place-items:center;padding:24px;opacity:0;pointer-events:none;transition:opacity .18s ease}
body.scwms-page .scwms-picked-cancel-modal[hidden]{display:none!important}
body.scwms-page .scwms-picked-cancel-modal.is-open{opacity:1;pointer-events:auto}
body.scwms-page .scwms-picked-cancel-card{position:relative;width:min(620px,100%);border:2px solid #d71920;border-radius:24px;background:#fff;padding:28px;box-shadow:0 30px 80px rgba(88,12,18,.32);transform:translateY(10px) scale(.98);transition:transform .18s ease}
body.scwms-page .scwms-picked-cancel-modal.is-open .scwms-picked-cancel-card{transform:translateY(0) scale(1)}
body.scwms-page .scwms-picked-cancel-close{position:absolute;top:16px;right:16px;width:38px;height:38px;border:1px solid #efc7ca;border-radius:12px;background:#fff;color:#8f1724;font-size:24px;line-height:1;cursor:pointer}
body.scwms-page .scwms-picked-cancel-kicker{font-size:11px;font-weight:900;letter-spacing:.12em;color:#a4111f}
body.scwms-page .scwms-picked-cancel-card h2{margin:8px 0 0;color:#b5121b;font-size:30px;line-height:1.05;letter-spacing:-.03em}
body.scwms-page .scwms-picked-cancel-card h3{margin:7px 0 20px;color:#161b26;font-size:21px;line-height:1.15}
body.scwms-page .scwms-picked-cancel-data{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 18px}
body.scwms-page .scwms-picked-cancel-data>div{padding:12px;border:1px solid #eadfe0;border-radius:13px;background:#fff8f8;min-width:0}
body.scwms-page .scwms-picked-cancel-data small{display:block;margin-bottom:5px;color:#7b6670;font-size:9.5px;font-weight:900;letter-spacing:.05em}
body.scwms-page .scwms-picked-cancel-data b{display:block;color:#161b26;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.scwms-page .scwms-picked-cancel-command{padding:15px 16px;border-radius:14px;background:#b5121b;color:#fff;text-align:center;font-size:15px;font-weight:950;letter-spacing:.035em}
body.scwms-page .scwms-picked-cancel-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
body.scwms-page .scwms-picked-cancel-actions .scwms-btn{min-height:44px}
body.scwms-page .scwms-cancel-detail-stage.is-danger{border-color:#f2b8bd;background:#fff4f5}
body.scwms-page .scwms-cancel-detail-stage.is-danger small,body.scwms-page .scwms-cancel-detail-stage.is-danger b{color:#a4111f}
@media(max-width:680px){body.scwms-page .scwms-picked-cancel-data{grid-template-columns:1fr}body.scwms-page .scwms-picked-cancel-actions{flex-direction:column}body.scwms-page .scwms-picked-cancel-actions .scwms-btn{width:100%}}

/* v0.12.08 · Canceladas: Control completo, sin recorte */
body.scwms-page .scwms-cancelled-table th:nth-child(1){width:15%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(2){width:11%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(3){width:6%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(4){width:14%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(5){width:25%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(6){width:11%!important}
body.scwms-page .scwms-cancelled-table th:nth-child(7){width:18%!important;min-width:205px!important;padding-left:12px!important;padding-right:12px!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7){width:18%!important;min-width:205px!important;padding-left:12px!important;padding-right:12px!important;white-space:normal!important;overflow:visible!important;text-align:left!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-summary-actions{width:100%!important;max-width:none!important;margin:0!important;align-items:stretch!important;gap:8px!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-safety-state{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;overflow:visible!important;text-align:left!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-safety-state b,
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-safety-state small{display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:break-word!important;word-break:normal!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-safety-state.is-pending.is-compact{padding:10px 11px!important;gap:4px!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-safety-state.is-pending.is-compact b{font-size:11.5px!important;line-height:1.25!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-safety-state.is-pending.is-compact small{font-size:10px!important;line-height:1.25!important;color:#667085!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-safety-command{color:#b42318!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.015em!important}
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-cancel-summary-actions .scwms-btn,
body.scwms-page .scwms-cancelled-table td:nth-child(7) .scwms-history-open{width:100%!important;max-width:none!important;min-width:0!important}
@media(max-width:1200px){body.scwms-page .scwms-cancelled-panel .scwms-table-wrap{overflow-x:auto!important}body.scwms-page .scwms-cancelled-table{min-width:1180px!important}}


/* v0.12.10 · copia rápida de Venta ML e ID Envío ME en Recupero */
body.scwms-page .scwms-cancel-recovery-table .scwms-recovery-copy-line{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important}
body.scwms-page .scwms-cancel-recovery-table .scwms-recovery-copy-line b{min-width:0!important;overflow-wrap:anywhere!important}
body.scwms-page .scwms-cancel-recovery-table .scwms-recovery-shipment-line{display:flex!important;align-items:center!important;gap:6px!important;margin-top:4px!important}
body.scwms-page .scwms-cancel-recovery-table .scwms-recovery-shipment-line .scwms-copy-mini,
body.scwms-page .scwms-cancel-recovery-table .scwms-recovery-copy-line .scwms-copy-mini{width:23px!important;height:23px!important;flex:0 0 23px!important;margin:0!important}
body.scwms-page .scwms-cancel-recovery-table .scwms-recovery-shipment-line .scwms-copy-mini svg,
body.scwms-page .scwms-cancel-recovery-table .scwms-recovery-copy-line .scwms-copy-mini svg{width:13px!important;height:13px!important}

/* v0.12.16: cancelada sin intervención física */
.scwms-cancel-detail-result.is-clear{background:#f7f8fa;border:1px solid #dfe3e8;color:#344054}.scwms-cancel-detail-result.is-clear b{color:#344054}


/* v0.12.18 · cierre visual por canal cuando todo quedó despachado */
body.scwms-page .scwms-dispatch-complete-banner{
  display:flex;align-items:center;gap:14px;margin:18px 0 4px;padding:16px 18px;
  border:1px solid #a9dfbd;border-radius:16px;background:#eefbf3;color:#116b39;
  box-shadow:0 8px 24px rgba(18,126,68,.07);
}
body.scwms-page .scwms-dispatch-complete-banner[hidden]{display:none!important}
body.scwms-page .scwms-dispatch-complete-icon{
  width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:13px;
  background:#1d9f57;color:#fff;font-size:24px;font-weight:950;line-height:1;
}
body.scwms-page .scwms-dispatch-complete-banner>div{display:grid;gap:3px;min-width:0}
body.scwms-page .scwms-dispatch-complete-banner b{font-size:15px;font-weight:950;letter-spacing:.015em;color:#0d6a35}
body.scwms-page .scwms-dispatch-complete-banner small{font-size:12px;line-height:1.4;color:#347b52}
@media(max-width:680px){
  body.scwms-page .scwms-dispatch-complete-banner{align-items:flex-start;padding:14px}
  body.scwms-page .scwms-dispatch-complete-banner b{font-size:13px}
  body.scwms-page .scwms-dispatch-complete-banner small{font-size:11px}
}

/* v0.12.26 · Recupero: Venta ML en una sola línea */
body.scwms-page .scwms-cancel-recovery-table .scwms-recovery-copy-line{
  flex-wrap:nowrap!important;
}
body.scwms-page .scwms-cancel-recovery-table .scwms-recovery-copy-line b{
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:keep-all!important;
}


/* v0.12.32 · FLEX: canceladas ya pickeadas con formato de card */
body.scwms-page .scwms-flex-cancelled-picked-stat{
  display:flex;
  align-items:flex-start;
  gap:14px;
  width:100%;
  max-width:340px;
  min-height:142px;
  margin:16px 0 12px;
  padding:16px 14px;
  border:1px solid #e3e6ea;
  border-radius:15px;
  background:#fff;
  box-sizing:border-box;
  box-shadow:none;
}
body.scwms-page .scwms-flex-cancelled-picked-icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:14px;
  background:#fff1f2;
  color:#d91f2b;
  font-size:28px;
  font-weight:950;
  line-height:1;
}
body.scwms-page .scwms-flex-cancelled-picked-stat>div{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
}
body.scwms-page .scwms-flex-cancelled-picked-stat small{
  font-size:10px;
  line-height:1.25;
  font-weight:900;
  letter-spacing:.02em;
  color:#6b7280;
}
body.scwms-page .scwms-flex-cancelled-picked-stat b{
  margin:10px 0 0;
  font-size:34px;
  line-height:1;
  font-weight:950;
  color:#b01824;
}
@media(max-width:680px){
  body.scwms-page .scwms-flex-cancelled-picked-stat{max-width:100%;min-height:120px}
}

/* v0.12.33 · Estado de Flex/Colecta y canceladas debajo de Salen hoy */
body.scwms-page .scwms-dispatch-complete-banner{
  min-height:72px!important;
  padding:14px 18px!important;
}
body.scwms-page .scwms-dispatch-complete-banner>div{
  display:flex!important;
  align-items:center!important;
}
body.scwms-page .scwms-dispatch-complete-banner b{
  font-size:16px!important;
  line-height:1.2!important;
}
body.scwms-page .scwms-dispatch-complete-banner small{display:none!important}

body.scwms-page .scwms-dispatch-channel-kpis-flex > .scwms-dispatch-detail-card[data-dispatch-detail-metric="scheduled"]{
  grid-column:1!important;
  grid-row:1!important;
}
body.scwms-page .scwms-dispatch-channel-kpis-flex > .scwms-flex-cancelled-picked-stat{
  grid-column:1!important;
  grid-row:2!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  min-height:142px!important;
}
body.scwms-page .scwms-dispatch-channel-kpis-flex > .scwms-dispatch-detail-card[data-dispatch-detail-metric="pending"]{grid-column:2!important;grid-row:1!important}
body.scwms-page .scwms-dispatch-channel-kpis-flex > .scwms-dispatch-detail-card[data-dispatch-detail-metric="picked"]{grid-column:3!important;grid-row:1!important}
body.scwms-page .scwms-dispatch-channel-kpis-flex > .scwms-dispatch-detail-card[data-dispatch-detail-metric="ready"]{grid-column:4!important;grid-row:1!important}
body.scwms-page .scwms-dispatch-channel-kpis-flex > .scwms-dispatch-detail-card[data-dispatch-detail-metric="dispatched"]{grid-column:5!important;grid-row:1!important}
body.scwms-page .scwms-dispatch-channel-kpis-flex > .scwms-dispatch-detail-card[data-dispatch-detail-metric="ml_in_transit"]{grid-column:6!important;grid-row:1!important}

@media(max-width:1500px){
  body.scwms-page .scwms-dispatch-channel-kpis-flex > .scwms-dispatch-detail-card,
  body.scwms-page .scwms-dispatch-channel-kpis-flex > .scwms-flex-cancelled-picked-stat{
    grid-column:auto!important;
    grid-row:auto!important;
  }
  body.scwms-page .scwms-dispatch-channel-kpis-flex > .scwms-flex-cancelled-picked-stat{order:7}
}
@media(max-width:620px){
  body.scwms-page .scwms-dispatch-channel-kpis-flex > .scwms-flex-cancelled-picked-stat{min-height:120px!important}
}


/* v0.12.34 · alerta grande: pedido para hoy recibido después del corte */
body.scwms-page .scwms-global-after-cutoff{
  width:100%;margin:0 0 16px;padding:18px 20px;border:1px solid #efa6aa;border-radius:16px;
  background:linear-gradient(90deg,#fff1f2 0%,#fff8ed 100%);color:#941923;
  display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:16px;
  text-align:left;cursor:pointer;box-shadow:0 12px 30px rgba(171,30,42,.09);
}
body.scwms-page .scwms-global-after-cutoff[hidden]{display:none!important}
body.scwms-page .scwms-global-after-cutoff-icon{
  width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#d91f2b;color:#fff;
  font-size:27px;font-weight:950;line-height:1;
}
body.scwms-page .scwms-global-after-cutoff-copy{display:grid;gap:5px;min-width:0}
body.scwms-page .scwms-global-after-cutoff-copy b{font-size:16px;line-height:1.2;font-weight:950;color:#b01622}
body.scwms-page .scwms-global-after-cutoff-copy small{font-size:12.5px;line-height:1.4;font-weight:650;color:#715056}
body.scwms-page .scwms-global-after-cutoff-action{
  min-height:38px;padding:0 14px;border:1px solid #e7a8ad;border-radius:11px;background:#fff;color:#ad1724;
  display:inline-flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:900;white-space:nowrap;
}
body.scwms-page .scwms-global-after-cutoff:hover{border-color:#df737c;box-shadow:0 14px 34px rgba(171,30,42,.12)}
@media(max-width:760px){
  body.scwms-page .scwms-global-after-cutoff{grid-template-columns:42px 1fr;padding:14px}
  body.scwms-page .scwms-global-after-cutoff-icon{width:42px;height:42px;border-radius:12px;font-size:23px}
  body.scwms-page .scwms-global-after-cutoff-action{grid-column:2;justify-self:start}
  body.scwms-page .scwms-global-after-cutoff-copy b{font-size:14px}
}


/* v0.12.36 · alerta post-corte visible dentro de Despacho */
body.scwms-page .scwms-dispatch-after-cutoff{margin:0 0 18px!important}

/* v0.12.39 · Historial más legible: columnas con ancho real y textos operativos en una línea */
body.scwms-page .scwms-section[data-section="historial"] .scwms-table-wrap{
  overflow-x:auto!important;
  overflow-y:visible!important;
  -webkit-overflow-scrolling:touch;
}
body.scwms-page .scwms-history-table{
  width:max-content!important;
  min-width:1680px!important;
  max-width:none!important;
  table-layout:auto!important;
}
body.scwms-page .scwms-history-table th,
body.scwms-page .scwms-history-table td{
  width:auto!important;
  min-width:0!important;
  padding-left:14px!important;
  padding-right:14px!important;
  vertical-align:middle!important;
}
body.scwms-page .scwms-history-table th:nth-child(1),
body.scwms-page .scwms-history-table td:nth-child(1){min-width:180px!important}
body.scwms-page .scwms-history-table th:nth-child(2),
body.scwms-page .scwms-history-table td:nth-child(2){min-width:250px!important}
body.scwms-page .scwms-history-table th:nth-child(3),
body.scwms-page .scwms-history-table td:nth-child(3){min-width:150px!important}
body.scwms-page .scwms-history-table th:nth-child(4),
body.scwms-page .scwms-history-table td:nth-child(4){min-width:135px!important;white-space:nowrap!important}
body.scwms-page .scwms-history-table th:nth-child(5),
body.scwms-page .scwms-history-table td:nth-child(5){min-width:175px!important}
body.scwms-page .scwms-history-table th:nth-child(6),
body.scwms-page .scwms-history-table td:nth-child(6),
body.scwms-page .scwms-history-table th:nth-child(7),
body.scwms-page .scwms-history-table td:nth-child(7),
body.scwms-page .scwms-history-table th:nth-child(8),
body.scwms-page .scwms-history-table td:nth-child(8),
body.scwms-page .scwms-history-table th:nth-child(9),
body.scwms-page .scwms-history-table td:nth-child(9){min-width:145px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
body.scwms-page .scwms-history-table th:nth-child(10),
body.scwms-page .scwms-history-table td:nth-child(10){min-width:115px!important;width:115px!important}
body.scwms-page .scwms-history-table td:nth-child(6),
body.scwms-page .scwms-history-table td:nth-child(7),
body.scwms-page .scwms-history-table td:nth-child(8),
body.scwms-page .scwms-history-table td:nth-child(9){
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:keep-all!important;
}
body.scwms-page .scwms-history-table td:nth-child(5) .scwms-pill{
  max-width:none!important;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  text-align:center!important;
}
body.scwms-page .scwms-history-table .scwms-history-shipment-id,
body.scwms-page .scwms-history-table .scwms-history-tracking{
  white-space:nowrap!important;
  max-width:none!important;
}
body.scwms-page .scwms-history-table .scwms-history-tracking span{
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
body.scwms-page .scwms-history-table td:last-child .scwms-history-open{
  min-width:88px!important;
  max-width:none!important;
  width:auto!important;
  white-space:nowrap!important;
}


/* v0.12.40 · Historial: Pickeó/Despachó unificados en una sola columna */
body.scwms-page .scwms-history-table{min-width:1535px!important}
body.scwms-page .scwms-history-table th:nth-child(6),
body.scwms-page .scwms-history-table td:nth-child(6),
body.scwms-page .scwms-history-table th:nth-child(7),
body.scwms-page .scwms-history-table td:nth-child(7),
body.scwms-page .scwms-history-table th:nth-child(8),
body.scwms-page .scwms-history-table td:nth-child(8){min-width:145px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important}
body.scwms-page .scwms-history-table th:nth-child(9),
body.scwms-page .scwms-history-table td:nth-child(9){min-width:115px!important;width:115px!important;white-space:nowrap!important}

/* v0.12.41 · Historial adaptable al ancho disponible, sin encimados */
body.scwms-page .scwms-section[data-section="historial"] .scwms-table-wrap{
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
  overflow-y:visible!important;
}
body.scwms-page .scwms-history-table{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  table-layout:fixed!important;
}
body.scwms-page .scwms-history-table th,
body.scwms-page .scwms-history-table td{
  min-width:0!important;
  width:auto!important;
  padding-left:10px!important;
  padding-right:10px!important;
  box-sizing:border-box!important;
  vertical-align:middle!important;
}
body.scwms-page .scwms-history-table th:nth-child(1),
body.scwms-page .scwms-history-table td:nth-child(1){width:16%!important}
body.scwms-page .scwms-history-table th:nth-child(2),
body.scwms-page .scwms-history-table td:nth-child(2){width:19%!important}
body.scwms-page .scwms-history-table th:nth-child(3),
body.scwms-page .scwms-history-table td:nth-child(3){width:12%!important}
body.scwms-page .scwms-history-table th:nth-child(4),
body.scwms-page .scwms-history-table td:nth-child(4){width:7%!important}
body.scwms-page .scwms-history-table th:nth-child(5),
body.scwms-page .scwms-history-table td:nth-child(5){width:14%!important}
body.scwms-page .scwms-history-table th:nth-child(6),
body.scwms-page .scwms-history-table td:nth-child(6){width:7.5%!important}
body.scwms-page .scwms-history-table th:nth-child(7),
body.scwms-page .scwms-history-table td:nth-child(7){width:7.5%!important}
body.scwms-page .scwms-history-table th:nth-child(8),
body.scwms-page .scwms-history-table td:nth-child(8){width:8%!important}
body.scwms-page .scwms-history-table th:nth-child(9),
body.scwms-page .scwms-history-table td:nth-child(9){width:9%!important}

/* Responsables siempre en una sola línea, sin partir palabras */
body.scwms-page .scwms-history-table td:nth-child(6),
body.scwms-page .scwms-history-table td:nth-child(7),
body.scwms-page .scwms-history-table td:nth-child(8){
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
/* Tipo y botón, una sola línea */
body.scwms-page .scwms-history-table td:nth-child(4),
body.scwms-page .scwms-history-table th:nth-child(4),
body.scwms-page .scwms-history-table td:nth-child(9),
body.scwms-page .scwms-history-table th:nth-child(9){white-space:nowrap!important}
body.scwms-page .scwms-history-table td:nth-child(9) .scwms-history-open{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  padding-left:8px!important;
  padding-right:8px!important;
  white-space:nowrap!important;
}
/* IDs y tracking pueden usar dos renglones internos, pero nunca encimarse */
body.scwms-page .scwms-history-table .scwms-history-shipment-id,
body.scwms-page .scwms-history-table .scwms-history-tracking{
  max-width:100%!important;
  min-width:0!important;
}
body.scwms-page .scwms-history-table .scwms-history-shipment-id b,
body.scwms-page .scwms-history-table .scwms-history-tracking span,
body.scwms-page .scwms-history-table td:first-child b{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  display:block!important;
  max-width:100%!important;
}
body.scwms-page .scwms-history-table td:nth-child(5) .scwms-pill{
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  line-height:1.2!important;
}

/* En pantallas angostas sí permitimos scroll, para no aplastar columnas */
@media(max-width:1180px){
  body.scwms-page .scwms-section[data-section="historial"] .scwms-table-wrap{overflow-x:auto!important}
  body.scwms-page .scwms-history-table{min-width:1040px!important;table-layout:fixed!important}
}

/* v0.12.42 · Historial: mínimos reales por columna, sin solapados */
body.scwms-page .scwms-section[data-section="historial"] .scwms-table-wrap{
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  -webkit-overflow-scrolling:touch;
}
body.scwms-page .scwms-history-table{
  width:100%!important;
  min-width:1240px!important;
  max-width:none!important;
  table-layout:fixed!important;
}
body.scwms-page .scwms-history-table th,
body.scwms-page .scwms-history-table td{
  min-width:0!important;
  box-sizing:border-box!important;
  vertical-align:middle!important;
  padding-left:10px!important;
  padding-right:10px!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
body.scwms-page .scwms-history-table th:nth-child(1),
body.scwms-page .scwms-history-table td:nth-child(1){width:165px!important}
body.scwms-page .scwms-history-table th:nth-child(2),
body.scwms-page .scwms-history-table td:nth-child(2){width:205px!important}
body.scwms-page .scwms-history-table th:nth-child(3),
body.scwms-page .scwms-history-table td:nth-child(3){width:145px!important}
body.scwms-page .scwms-history-table th:nth-child(4),
body.scwms-page .scwms-history-table td:nth-child(4){width:150px!important}
body.scwms-page .scwms-history-table th:nth-child(5),
body.scwms-page .scwms-history-table td:nth-child(5){width:155px!important}
body.scwms-page .scwms-history-table th:nth-child(6),
body.scwms-page .scwms-history-table td:nth-child(6){width:105px!important}
body.scwms-page .scwms-history-table th:nth-child(7),
body.scwms-page .scwms-history-table td:nth-child(7){width:105px!important}
body.scwms-page .scwms-history-table th:nth-child(8),
body.scwms-page .scwms-history-table td:nth-child(8){width:125px!important}
body.scwms-page .scwms-history-table th:nth-child(9),
body.scwms-page .scwms-history-table td:nth-child(9){width:85px!important}

/* Nunca permitir que Tipo / responsables invadan la columna vecina. */
body.scwms-page .scwms-history-table th:nth-child(4),
body.scwms-page .scwms-history-table td:nth-child(4),
body.scwms-page .scwms-history-table th:nth-child(6),
body.scwms-page .scwms-history-table td:nth-child(6),
body.scwms-page .scwms-history-table th:nth-child(7),
body.scwms-page .scwms-history-table td:nth-child(7),
body.scwms-page .scwms-history-table th:nth-child(8),
body.scwms-page .scwms-history-table td:nth-child(8){
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
body.scwms-page .scwms-history-table td:nth-child(4){font-size:13px!important}
body.scwms-page .scwms-history-table td:nth-child(8){font-size:13px!important}

/* IDs/tracking usan sus propias líneas internas y no empujan otras columnas. */
body.scwms-page .scwms-history-table .scwms-history-shipment-id,
body.scwms-page .scwms-history-table .scwms-history-tracking{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}
body.scwms-page .scwms-history-table .scwms-history-shipment-id b,
body.scwms-page .scwms-history-table .scwms-history-tracking span,
body.scwms-page .scwms-history-table td:first-child b{
  display:block!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* Estado puede ocupar dos líneas dentro de su propia celda, sin superponerse. */
body.scwms-page .scwms-history-table td:nth-child(5){overflow:hidden!important}
body.scwms-page .scwms-history-table td:nth-child(5) .scwms-pill{
  display:inline-flex!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  line-height:1.15!important;
  text-align:center!important;
}

/* Despachó siempre completo en una sola línea. */
body.scwms-page .scwms-history-table td:nth-child(8){
  white-space:nowrap!important;
  overflow:visible!important;
}
body.scwms-page .scwms-history-table td:nth-child(8) *{
  white-space:nowrap!important;
}

body.scwms-page .scwms-history-table td:nth-child(9) .scwms-history-open{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  padding-left:6px!important;
  padding-right:6px!important;
  white-space:nowrap!important;
}

/* v0.12.43 · Historial compacto: todo entra en el ancho del panel */
@media(min-width:1051px){
  body.scwms-page .scwms-section[data-section="historial"] .scwms-table-wrap{
    overflow-x:hidden!important;
  }
  body.scwms-page .scwms-history-table{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    table-layout:fixed!important;
  }
  body.scwms-page .scwms-history-table th,
  body.scwms-page .scwms-history-table td{
    padding:10px 7px!important;
    font-size:11.5px!important;
    line-height:1.2!important;
  }
  body.scwms-page .scwms-history-table th{
    font-size:9.5px!important;
    letter-spacing:.025em!important;
    white-space:nowrap!important;
  }

  body.scwms-page .scwms-history-table th:nth-child(1),
  body.scwms-page .scwms-history-table td:nth-child(1){width:15%!important}
  body.scwms-page .scwms-history-table th:nth-child(2),
  body.scwms-page .scwms-history-table td:nth-child(2){width:20%!important}
  body.scwms-page .scwms-history-table th:nth-child(3),
  body.scwms-page .scwms-history-table td:nth-child(3){width:12%!important}
  body.scwms-page .scwms-history-table th:nth-child(4),
  body.scwms-page .scwms-history-table td:nth-child(4){width:9%!important}
  body.scwms-page .scwms-history-table th:nth-child(5),
  body.scwms-page .scwms-history-table td:nth-child(5){width:13%!important}
  body.scwms-page .scwms-history-table th:nth-child(6),
  body.scwms-page .scwms-history-table td:nth-child(6){width:7%!important}
  body.scwms-page .scwms-history-table th:nth-child(7),
  body.scwms-page .scwms-history-table td:nth-child(7){width:7%!important}
  body.scwms-page .scwms-history-table th:nth-child(8),
  body.scwms-page .scwms-history-table td:nth-child(8){width:10%!important}
  body.scwms-page .scwms-history-table th:nth-child(9),
  body.scwms-page .scwms-history-table td:nth-child(9){width:7%!important}

  body.scwms-page .scwms-history-table td:nth-child(4),
  body.scwms-page .scwms-history-table td:nth-child(6),
  body.scwms-page .scwms-history-table td:nth-child(7),
  body.scwms-page .scwms-history-table td:nth-child(8){
    font-size:10.5px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
  }

  body.scwms-page .scwms-history-table td:first-child b,
  body.scwms-page .scwms-history-table .scwms-history-shipment-id b,
  body.scwms-page .scwms-history-table .scwms-history-tracking span{
    font-size:11.5px!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body.scwms-page .scwms-history-table .scwms-history-shipment-id small,
  body.scwms-page .scwms-history-table .scwms-history-tracking small,
  body.scwms-page .scwms-history-table .scwms-operational-date small{
    font-size:8.5px!important;
    line-height:1.15!important;
  }
  body.scwms-page .scwms-history-table .scwms-history-tracking span{
    font-size:9.5px!important;
  }
  body.scwms-page .scwms-history-table .scwms-history-me1-cell{
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    white-space:nowrap!important;
    min-width:0!important;
  }
  body.scwms-page .scwms-history-table .scwms-history-me1-cell b{
    font-size:11.5px!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body.scwms-page .scwms-history-table .scwms-pill{
    font-size:10px!important;
    line-height:1.1!important;
    padding:7px 9px!important;
  }
  body.scwms-page .scwms-history-table td:nth-child(5) .scwms-pill{
    width:auto!important;
    max-width:100%!important;
    white-space:normal!important;
  }
  body.scwms-page .scwms-history-table td:nth-child(9) .scwms-history-open{
    font-size:10px!important;
    padding:8px 5px!important;
  }
}

/* En pantallas realmente angostas se prioriza legibilidad y recién ahí hay scroll. */
@media(max-width:1050px){
  body.scwms-page .scwms-section[data-section="historial"] .scwms-table-wrap{overflow-x:auto!important}
  body.scwms-page .scwms-history-table{min-width:940px!important}
}


/* v0.12.44 · Historial ME1: identificador en Envío y Procurrier Manual en dos líneas */
body.scwms-page .scwms-history-table .scwms-history-me1-cell{display:flex!important;align-items:center!important;min-width:0!important}
body.scwms-page .scwms-history-table .scwms-history-me1-id{display:block!important;min-width:0!important;max-width:100%!important}
body.scwms-page .scwms-history-table .scwms-history-me1-id b{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-weight:850!important}
body.scwms-page .scwms-history-table .scwms-history-me1-logistic{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:1px!important;line-height:1.05!important;white-space:normal!important}
body.scwms-page .scwms-history-table .scwms-history-me1-logistic span{display:block!important;white-space:nowrap!important}
body.scwms-page .scwms-history-table .scwms-history-me1-logistic small{display:block!important;font-size:.86em!important;font-weight:750!important;color:#667085!important;white-space:nowrap!important}


/* v0.12.45 · Detalle Historial: productos y problemas apilados */
body.scwms-page #scwms-order-history-detail .scwms-history-products-block,
body.scwms-page #scwms-order-history-detail .scwms-history-problems-block{width:100%!important;min-width:0!important}
body.scwms-page #scwms-order-history-detail .scwms-history-items-table{width:100%!important;min-width:0!important;table-layout:auto!important}
body.scwms-page #scwms-order-history-detail .scwms-history-problems{width:100%!important}


/* v0.12.49 · Despacho: lector pausado sin bloquear pantalla */
body.scwms-page .scwms-label-pick-processing{
  max-width:1040px;margin:14px auto 0;padding:13px 16px;display:flex;align-items:center;justify-content:center;gap:12px;
  border:1px solid #f0c36a;border-radius:14px;background:#fff9e9;color:#7a4a00;text-align:left;box-sizing:border-box;
}
body.scwms-page .scwms-label-pick-processing[hidden]{display:none!important}
body.scwms-page .scwms-label-pick-processing>div{display:grid;gap:2px}
body.scwms-page .scwms-label-pick-processing b{font-size:13px;font-weight:950;letter-spacing:.025em;color:#8a5300}
body.scwms-page .scwms-label-pick-processing small{font-size:11px;font-weight:700;color:#87683b}
body.scwms-page .scwms-label-pick-spinner{width:24px;height:24px;flex:0 0 24px;border:3px solid #f0d9a7;border-top-color:#d18a00;border-radius:50%;animation:scwmsLabelPickSpin .7s linear infinite}
@keyframes scwmsLabelPickSpin{to{transform:rotate(360deg)}}
body.scwms-page .scwms-unified-label-detector.is-processing .scwms-me1-scan-row input{
  background:#f5f6f8!important;border-color:#d8dde5!important;color:#8a94a3!important;box-shadow:none!important;caret-color:transparent!important;cursor:wait!important;
}
body.scwms-page .scwms-unified-label-detector.is-processing .scwms-me1-scan-row input::placeholder{color:#7b8492!important}
@media(prefers-reduced-motion:reduce){body.scwms-page .scwms-label-pick-spinner{animation:none!important}}

/* v0.12.50 · Despacho: bloquear visualmente solo el lector mientras procesa */
body.scwms-page .scwms-unified-label-detector{position:relative!important}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing{
  position:absolute!important;
  inset:0!important;
  z-index:30!important;
  max-width:none!important;
  margin:0!important;
  padding:24px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:14px!important;
  border:0!important;
  border-radius:inherit!important;
  background:rgba(255,255,255,.94)!important;
  backdrop-filter:blur(3px)!important;
  -webkit-backdrop-filter:blur(3px)!important;
  color:#111827!important;
  text-align:center!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing[hidden]{display:none!important}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing:before{
  content:"";
  position:absolute;
  left:-35%;
  top:0;
  width:35%;
  height:4px;
  background:linear-gradient(90deg,transparent,#e11d2e,transparent);
  animation:scwmsPickScanLine 1.15s ease-in-out infinite;
}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-spinner{
  width:44px!important;
  height:44px!important;
  flex:0 0 44px!important;
  border:4px solid #f1c7cc!important;
  border-top-color:#e11d2e!important;
  border-right-color:#e11d2e!important;
  border-radius:50%!important;
  animation:scwmsLabelPickSpin .65s linear infinite!important;
  box-shadow:0 0 0 8px rgba(225,29,46,.05)!important;
}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing>div{
  display:grid!important;
  gap:5px!important;
  justify-items:center!important;
}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing b{
  font-size:17px!important;
  line-height:1.2!important;
  font-weight:950!important;
  letter-spacing:.03em!important;
  color:#b4232c!important;
}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing small{
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:750!important;
  color:#667085!important;
}
body.scwms-page .scwms-unified-label-detector.is-processing{
  border-color:#ef9aa2!important;
  box-shadow:0 18px 46px rgba(225,29,46,.12),0 0 0 3px rgba(225,29,46,.06)!important;
}
@keyframes scwmsPickScanLine{
  0%{left:-35%;opacity:0}
  15%{opacity:1}
  85%{opacity:1}
  100%{left:100%;opacity:0}
}
@media(prefers-reduced-motion:reduce){
  body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing:before,
  body.scwms-page .scwms-unified-label-detector .scwms-label-pick-spinner{animation:none!important}
}


/* v0.12.54 · Historial conserva la salida aunque el envío esté en devolución */
body.scwms-page .scwms-history-left-seller{display:block;margin-top:5px;color:#16794b;font-size:9px;font-weight:900;line-height:1.2;white-space:nowrap}


/* v0.12.66 · Colectas: editar y guardar por card, sin reconfirmación */
body.scwms-page .scwms-admin-save-zone{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  margin-top:16px;padding:14px 16px;border-top:1px solid #e7e9ed;background:#fafbfc;
  border-radius:0 0 14px 14px;
}
body.scwms-page .scwms-admin-save-zone>div{display:grid;gap:3px;min-width:0}
body.scwms-page .scwms-admin-save-zone small{font-size:9px;font-weight:900;letter-spacing:.08em;color:#d41f2a}
body.scwms-page .scwms-admin-save-zone span{font-size:10px;line-height:1.4;color:#747d88}
body.scwms-page .scwms-admin-save-zone .scwms-btn{flex:0 0 auto}
body.scwms-page .scwms-collecta-admin-warning,
body.scwms-page .scwms-reconfirm-float,
body.scwms-page .scwms-admin-reconfirm-zone,
body.scwms-page .scwms-collecta-auto-reconfirm{display:none!important}
@media(max-width:700px){body.scwms-page .scwms-admin-save-zone{align-items:stretch;flex-direction:column}body.scwms-page .scwms-admin-save-zone .scwms-btn{width:100%}}

/* v0.12.77 · Circuit breaker de sesión/WAF. */
.scwms-session-blocked{position:fixed;left:50%;top:14px;transform:translateX(-50%);z-index:99999;display:flex;align-items:center;gap:10px;max-width:min(760px,calc(100vw - 28px));padding:11px 14px;border:1px solid #f2b6b6;border-radius:12px;background:#fff4f4;color:#7f1111;box-shadow:0 14px 40px rgba(0,0,0,.16);font-size:12px}.scwms-session-blocked[hidden]{display:none}.scwms-session-blocked b{white-space:nowrap}.scwms-session-blocked span{line-height:1.35}.scwms-session-blocked button{border:0;border-radius:9px;background:#b80f1c;color:#fff;font-weight:800;padding:8px 11px;cursor:pointer;white-space:nowrap}@media(max-width:720px){.scwms-session-blocked{align-items:flex-start;flex-wrap:wrap}.scwms-session-blocked span{flex:1 1 100%}}

/* v0.12.81 · estado real de carga en Pedidos */
body.scwms-page .scwms-orders-loading-row td{padding:30px 20px!important;text-align:center!important;background:#fff!important}
body.scwms-page .scwms-orders-loading{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:54px;color:#111827}
body.scwms-page .scwms-orders-loading>div{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left}
body.scwms-page .scwms-orders-loading b{font-size:14px;font-weight:850;color:#1c2430}
body.scwms-page .scwms-orders-loading small{font-size:12px;font-weight:600;color:#7b8491}
body.scwms-page .scwms-orders-spinner{width:26px;height:26px;border-radius:50%;border:3px solid #f2cfd2;border-top-color:#d71920;animation:scwmsOrdersSpin .72s linear infinite;flex:0 0 auto}
@keyframes scwmsOrdersSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){body.scwms-page .scwms-orders-spinner{animation-duration:1.8s}}


/* v0.12.82 · Despacho: el lector no se tapa mientras confirma otra etiqueta */
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing{
  position:static!important;
  inset:auto!important;
  z-index:auto!important;
  max-width:none!important;
  margin:10px 0 0!important;
  padding:9px 12px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  border:1px solid #f0c36a!important;
  border-radius:12px!important;
  background:#fff9e9!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  text-align:left!important;
  overflow:visible!important;
}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing:before{display:none!important}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-spinner{
  width:22px!important;height:22px!important;flex:0 0 22px!important;border-width:3px!important;box-shadow:none!important;
}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing>div{justify-items:start!important;gap:1px!important}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing b{font-size:12px!important}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing small{font-size:10px!important}
body.scwms-page .scwms-unified-label-detector.is-processing .scwms-me1-scan-row input{
  background:#fff!important;border-color:#d9dee7!important;color:#111827!important;box-shadow:0 0 0 2px rgba(225,29,46,.05)!important;caret-color:auto!important;cursor:text!important;
}


/* v0.12.83 · Despacho: una etiqueta por vez, bloqueo visual mientras confirma. */
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing{
  position:absolute!important;inset:0!important;z-index:30!important;margin:0!important;padding:24px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:14px!important;
  border:0!important;border-radius:inherit!important;background:rgba(255,255,255,.94)!important;
  backdrop-filter:blur(3px)!important;-webkit-backdrop-filter:blur(3px)!important;text-align:center!important;overflow:hidden!important;
}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing:before{
  display:block!important;content:"";position:absolute;left:-35%;top:0;width:35%;height:4px;
  background:linear-gradient(90deg,transparent,#e11d2e,transparent);animation:scwmsPickScanLine 1.15s ease-in-out infinite;
}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-spinner{
  width:44px!important;height:44px!important;flex:0 0 44px!important;border:4px solid #f1c7cc!important;
  border-top-color:#e11d2e!important;border-right-color:#e11d2e!important;box-shadow:0 0 0 8px rgba(225,29,46,.05)!important;
}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing>div{justify-items:center!important;gap:5px!important}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing b{font-size:17px!important;color:#b4232c!important}
body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing small{font-size:12px!important;color:#667085!important}
body.scwms-page .scwms-unified-label-detector.is-processing .scwms-me1-scan-row input{
  background:#f5f6f8!important;border-color:#d8dde5!important;color:#8a94a3!important;box-shadow:none!important;caret-color:transparent!important;cursor:wait!important;
}
@media(prefers-reduced-motion:reduce){body.scwms-page .scwms-unified-label-detector .scwms-label-pick-processing:before{animation:none!important}}

/* v0.12.92: conciliación visible dentro de la tarjeta de escaneo. */
.scwms-dispatch-missing-action:not([hidden]){display:block;margin-top:10px;border:0;background:transparent;color:#cb2525;font:inherit;font-size:12px;font-weight:800;text-align:left;cursor:pointer;padding:3px 0;line-height:1.4}
.scwms-dispatch-missing-action:hover{text-decoration:underline}


/* v0.12.95 — responsive mobile stabilization. Presentation only; no operational changes. */
@media (max-width: 930px) {
  body.scwms-page .scwms-app,
  body.scwms-page .scwms-main,
  body.scwms-page .scwms-content,
  body.scwms-page .scwms-section,
  body.scwms-page .scwms-panel,
  body.scwms-page .scwms-card {min-width:0;max-width:100%;box-sizing:border-box}
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-head {
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;
  }
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini {
    width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
  }
  body.scwms-page .scwms-dispatch-channel-kpis,
  body.scwms-page .scwms-dispatch-channel-kpis-flex {min-width:0!important;max-width:100%!important}
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis > *,
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis-flex > * {
    min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  }
  body.scwms-page .scwms-home-reconcile,
  body.scwms-page .scwms-home-reconcile-main,
  body.scwms-page .scwms-home-reconcile-channels {min-width:0!important;max-width:100%!important}
  body.scwms-page .scwms-home-reconcile-channel {min-width:0!important;overflow-wrap:anywhere}
  body.scwms-page .scwms-home-reconcile-channel>strong {min-width:0;overflow-wrap:anywhere}
  body.scwms-page .scwms-products-table-wrap,
  body.scwms-page .scwms-table-wrap {max-width:100%;box-sizing:border-box}
}
@media (max-width: 620px) {
  /* Oversized cutoff status used a 64px desktop title and a two-column grid. */
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini {
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:10px!important;min-height:0!important;padding:16px!important;
    overflow:hidden!important;
  }
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>strong {
    display:block!important;max-width:100%!important;font-size:clamp(30px,10vw,44px)!important;
    line-height:1.05!important;letter-spacing:-.035em!important;text-align:left!important;
    overflow-wrap:anywhere!important;word-break:normal!important;
  }
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini .scwms-cutoff-status {
    align-self:flex-start!important;max-width:100%!important;min-width:0!important;
    min-height:36px!important;font-size:12px!important;padding:6px 13px!important;
    white-space:normal!important;
  }
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>small,
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>p {
    display:block!important;max-width:100%!important;text-align:left!important;
    font-size:12px!important;line-height:1.45!important;overflow-wrap:anywhere!important;margin:0!important;
  }
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini .scwms-collecta-view-btn {
    width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:4px 0 0!important;
    white-space:normal!important;
  }
  /* Flex KPI explicit grid-column / grid-row rules must reset on narrow screens. */
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis,
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis-flex {
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;gap:10px!important;width:100%!important;
  }
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis > *,
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis-flex > * {
    grid-column:auto!important;grid-row:auto!important;order:initial!important;
    width:auto!important;min-width:0!important;margin:0!important;
  }
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis .scwms-kpi {
    padding:12px 10px!important;min-height:132px!important;
  }
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis .scwms-kpi small,
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis .scwms-kpi em {
    overflow-wrap:anywhere;word-break:normal;white-space:normal;line-height:1.35!important;
  }
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis .scwms-kpi strong {
    font-size:clamp(27px,8vw,34px)!important;
  }
  /* Keep dashboard reconcilation and its action in the normal document flow. */
  body.scwms-page .scwms-home-reconcile {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
  body.scwms-page .scwms-home-reconcile-channels {display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  body.scwms-page .scwms-home-reconcile-channel {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
  body.scwms-page .scwms-home-reconcile>.scwms-home-mini-link {
    position:static!important;align-self:stretch!important;width:100%!important;max-width:100%!important;
    box-sizing:border-box!important;margin:0!important;
  }
  /* Supervision cards: vertical reading instead of 3 squeezed panels. */
  body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis,
  body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis {
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;
  }
  body.scwms-page .scwms-section[data-section="packing"] .scwms-ops-supervisor-kpis .scwms-kpi,
  body.scwms-page .scwms-section[data-section="picking"] .scwms-ops-supervisor-kpis .scwms-kpi {
    min-width:0!important;width:100%!important;box-sizing:border-box!important;
  }
  /* Stock/product detail: no hard minimum width for mobile information cards. */
  body.scwms-page .scwms-products-table tr.scwms-product-row,
  body.scwms-page .scwms-stock-table tr.scwms-product-row {max-width:100%;box-sizing:border-box}
  body.scwms-page .scwms-products-table td,
  body.scwms-page .scwms-stock-table td {min-width:0;overflow-wrap:anywhere}
  body.scwms-page .scwms-stock-values {min-width:0;max-width:100%}
  /* Warehouse layout controls: avoid partially visible drag cards. */
  body.scwms-page .scwms-layout-templates {grid-template-columns:minmax(0,1fr)!important;max-width:100%!important}
  body.scwms-page .scwms-layout-templates > * {min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  body.scwms-page .scwms-rack-measures {grid-template-columns:minmax(0,1fr)!important}
  /* Dialogs should scroll inside their viewport, not beyond the screen. */
  body.scwms-page .scwms-modal-card,
  body.scwms-page .scwms-home-audit-dialog,
  body.scwms-page .scwms-location-modal-card {
    width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;
    box-sizing:border-box!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto;
  }
}
@media (max-width: 360px) {
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis,
  body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-channel-kpis-flex {grid-template-columns:minmax(0,1fr)!important}
}


/* v0.12.99 · Pedidos: Flex/Colecta muestran ID Envío ME y el tracking no se desborda */
body.scwms-page .scwms-order-detail-fact--tracking{
  grid-column:span 2!important;
}
body.scwms-page .scwms-order-detail-fact--tracking b{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  line-height:1.22!important;
  font-size:14px!important;
  letter-spacing:0!important;
}
body.scwms-page .scwms-order-detail-fact--units b{
  white-space:normal!important;
  font-size:15px!important;
  line-height:1.2!important;
}
@media (max-width:980px){
  body.scwms-page .scwms-order-detail-fact--tracking{
    grid-column:1 / -1!important;
  }
}
@media (max-width:640px){
  body.scwms-page .scwms-order-detail-fact--tracking{
    grid-column:auto!important;
  }
}

/* v0.12.108: la alerta de corte es sólo de Pedidos/Inicio, nunca Despacho. */
body.scwms-page:has(.scwms-section[data-section="despacho"].is-active) #scwms-global-after-cutoff{display:none!important}

/* v0.12.114: horario de corte siempre legible en una sola línea en Despacho. */
body.scwms-page .scwms-section[data-section="despacho"] .scwms-dispatch-cutoff-mini>small {
  white-space:nowrap!important;
  overflow:visible!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}


/* v0.12.118 · Recupero de canceladas: ajustar tabla al ancho sin barra horizontal.
   Sólo presentación. Mantiene todas las columnas y los controles operativos. */
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-panel .scwms-table-wrap{
  width:100%!important;max-width:100%!important;min-width:0!important;
  overflow:hidden!important;box-sizing:border-box!important;
  container-type:inline-size;container-name:scwms-recovery;
}
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table{
  width:100%!important;max-width:100%!important;min-width:0!important;
  table-layout:fixed!important;
}
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table th,
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table td{
  box-sizing:border-box!important;min-width:0!important;
  padding-left:8px!important;padding-right:8px!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
}
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table th:nth-child(1){width:18.5%}
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table th:nth-child(2){width:12%}
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table th:nth-child(3){width:14%}
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table th:nth-child(4){width:9%}
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table th:nth-child(5){width:9%}
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table th:nth-child(6){width:12%}
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table th:nth-child(7){width:17%}
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table th:nth-child(8){width:8.5%}
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-recovery-person,
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-recovery-actions{
  width:100%!important;max-width:100%!important;min-width:0!important;
}
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-recovery-actions{align-items:stretch!important}
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-recovery-status{
  width:100%;max-width:100%;min-width:0;box-sizing:border-box;
  white-space:normal!important;overflow-wrap:anywhere;text-align:center;
}
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-recovery-actions .scwms-btn,
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-detail-open{
  width:100%!important;max-width:100%!important;min-width:0!important;
  box-sizing:border-box!important;white-space:normal!important;
  overflow-wrap:anywhere!important;padding-left:6px!important;padding-right:6px!important;
}
body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-recovery-shipment-line span{
  min-width:0!important;overflow-wrap:anywhere!important;
}
/* En paneles angostos convertimos sólo ESTA tabla en fichas, sin sacrificar datos. */
@container scwms-recovery (max-width:1030px){
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table,
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody{
    display:block!important;width:100%!important;
  }
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table thead{display:none!important}
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody tr{
    display:block!important;margin:0;padding:6px 0;
    border-bottom:1px solid #e7eaf0;
  }
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody tr:last-child{border-bottom:0}
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody td{
    display:block!important;position:relative!important;
    width:100%!important;min-height:37px!important;
    padding:9px 12px 9px 155px!important;border:0!important;
    overflow-wrap:anywhere!important;
  }
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody td::before{
    position:absolute;left:12px;top:10px;width:130px;
    color:#667085;font-size:10px;font-weight:800;line-height:1.4;
    letter-spacing:.025em;text-transform:uppercase;
  }
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody td:nth-child(1)::before{content:"Venta ML"}
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody td:nth-child(2)::before{content:"Envío"}
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody td:nth-child(3)::before{content:"Canceló"}
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody td:nth-child(4)::before{content:"Preparó"}
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody td:nth-child(5)::before{content:"Empacó"}
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody td:nth-child(6)::before{content:"Pickeó etiqueta"}
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody td:nth-child(7)::before{content:"Recupero"}
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody td:nth-child(8)::before{content:"Detalle"}
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-recovery-actions{
    width:min(100%,290px)!important;align-items:stretch!important;
  }
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-detail-open{width:auto!important;min-width:105px!important;max-width:170px!important}
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody td.empty{
    padding:25px 14px!important;min-height:0!important;text-align:center;
  }
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody td.empty::before{content:none!important}
}
@media(max-width:520px){
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody td{padding:8px 12px!important}
  body.scwms-page .scwms-section[data-section="recupero-canceladas"] .scwms-cancel-recovery-table tbody td::before{
    display:block!important;position:static!important;width:auto!important;margin:0 0 4px!important;
  }
}
