.em-panel,.em-order{margin:16px 0;padding:16px;border:1px solid #3c494f;border-radius:13px;background:#1b2226;color:#eaf0f3}.em-heading{display:flex;justify-content:space-between;gap:14px;align-items:center}.em-heading h3,.em-panel h3{font-size:16px!important;font-weight:500!important;margin:4px 0}.em-panel small,.em-dialog small{color:#acbac3!important;font-size:12px!important;font-weight:400!important;line-height:1.5}.em-filters,.em-search{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.em-search input{flex:2;min-width:150px}.em-search select{flex:1;min-width:130px}.em-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-top:1px solid #39464e}.em-card>div{min-width:0}.em-card h4{font-size:14px!important;font-weight:500!important;margin:6px 0!important;overflow-wrap:anywhere}.em-card p{margin:4px 0!important;font-size:12px!important;font-weight:400!important;color:#b9c6cd!important;line-height:1.5}.em-status{font-size:11px!important;font-weight:500!important;color:#69d3eb!important}.em-panel button,.em-dialog button{width:auto!important;min-width:0!important;min-height:38px!important;margin:0!important;padding:9px 12px!important;border:1px solid #52616b!important;border-radius:9px!important;background:#283239!important;color:#f1f5f7!important;font-size:12px!important;font-weight:400!important;line-height:1.4!important;box-shadow:none!important;white-space:normal}.em-panel button.selected{border-color:#2dbfdf!important;background:#123944!important}.em-dialog button.em-primary{background:#cf0b79!important;border-color:#e32793!important}.em-dialog{box-sizing:border-box!important;width:min(780px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important;max-height:calc(100dvh - 28px)!important;padding:0!important;border:1px solid #43545e!important;border-radius:16px!important;background:#20272c!important;color:#edf3f7!important;overflow:auto!important}.em-dialog::backdrop{background:#000a}.em-dialog>header{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;gap:16px;padding:18px 22px;background:#101a20;border-bottom:1px solid #35434d}.em-dialog h2{margin:4px 0!important;font-size:20px!important;font-weight:500!important}.em-body{padding:18px 22px}.em-dialog form{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:12px 0!important;padding:0!important;display:grid!important;gap:12px!important}.em-dialog .em-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.em-dialog label{display:grid!important;gap:6px!important;margin:0!important;font-size:12px!important;font-weight:400!important}.em-dialog input:not([type=checkbox]),.em-dialog textarea,.em-search input,.em-search select{box-sizing:border-box!important;width:100%!important;min-width:0!important;background:#161d22!important;color:#edf3f7!important;border:1px solid #485a65!important;border-radius:8px!important;font-size:13px!important;font-weight:400!important;padding:10px!important}.em-dialog label.em-check{display:flex!important;align-items:flex-start!important;gap:9px!important;line-height:1.5}.em-dialog input[type=checkbox]{width:16px!important;height:16px!important;min-height:16px!important;flex:0 0 16px!important;margin:2px 0!important}.em-dialog details{margin:16px 0;padding:13px;border:1px solid #43525b;border-radius:10px}.em-dialog summary{cursor:pointer;font-size:13px;font-weight:500}.em-dialog p{font-size:13px!important;line-height:1.5!important;font-weight:400!important}.em-dialog h3{font-size:15px!important;font-weight:500!important}.em-note{padding:12px;border-left:3px solid #23b4d4;background:#172b34;color:#bfdae4}.em-action-zone{display:grid;gap:12px}.em-dialog .error{color:#ff9b9b!important}@media(max-width:560px){.em-dialog .em-grid{grid-template-columns:1fr}.em-body{padding:14px}.em-card{align-items:flex-start;flex-direction:column}.em-heading{align-items:flex-start}.em-filters button{flex:1 1 auto}.em-dialog>header{padding:15px}}
.em-dialog#externalMaquilaDetail button,.em-dialog#externalMaquilaList button,#outsourcingPanel.em-panel button{font-size:13px!important;font-weight:400!important;background:#283239!important;border:1px solid #52616b!important;color:#edf3f7!important;box-shadow:none!important}
.em-dialog#externalMaquilaDetail button.em-primary{background:#cf0b79!important;border-color:#e32793!important}
#outsourcingPanel.em-panel button.selected{background:#123944!important;border-color:#2dbfdf!important}
.em-dialog#externalMaquilaDetail>header>button,.em-dialog#externalMaquilaList>header>button{width:36px!important;height:36px!important;min-height:36px!important;padding:4px!important;font-size:20px!important}

/* Compact neon overview: useful details and actions stay on the card. */
.em-panel .em-neon-card,.em-dialog .em-neon-card{display:grid!important;grid-template-columns:minmax(180px,1fr) minmax(270px,1.45fr) minmax(220px,1fr);gap:18px!important;align-items:center!important;margin:10px 0!important;padding:14px 16px!important;border:1px solid #334b57!important;border-left:3px solid #14bddd!important;border-radius:12px!important;background:linear-gradient(105deg,#16282f 0%,#1c252b 42%,#192126 100%)!important;box-shadow:inset 1px 0 12px #00bce00b!important}
.em-panel .em-neon-card.em-late{border-left-color:#efb54c!important}
.em-light{display:inline-flex!important;align-items:center;gap:6px;font-size:10px!important;font-weight:500!important;line-height:1.4;color:#94a7b2!important;letter-spacing:0!important}
.em-light i{display:inline-block;flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:#64717a;box-shadow:none}
.em-light.current{color:#5de0ff!important}.em-light.current i{background:#25d4ff;box-shadow:0 0 8px #25d4ff88}
.em-light.done{color:#85e0b8!important}.em-light.done i{background:#54dca3;box-shadow:0 0 7px #54dca366}
.em-light.alert{color:#f6c96a!important}.em-light.alert i{background:#f5b644;box-shadow:0 0 7px #f5b64477}
.em-folio{display:inline-flex!important;align-items:baseline;gap:9px;margin:5px 0;padding:5px 9px;border:1px solid #198aaa;border-radius:7px;background:#083443;color:#7bddf7!important;font-size:9px!important;letter-spacing:.07em!important}
.em-folio b{color:#bdf1ff!important;font-size:14px!important;font-weight:500!important;letter-spacing:.04em!important}
.em-progress{display:flex;flex-wrap:wrap;gap:8px 12px;margin:0 0 12px;padding-bottom:9px;border-bottom:1px solid #35505c}
.em-card-facts{display:grid;grid-template-columns:1.1fr 1fr;gap:9px 14px}
.em-card-facts>div{display:grid;gap:3px;min-width:0}.em-card-facts small{font-size:9px!important;color:#7899aa!important;font-weight:400!important;letter-spacing:.06em!important}.em-card-facts span{font-size:11px!important;color:#d0e2eb!important;line-height:1.45!important;overflow-wrap:anywhere}
.em-provider-status{display:flex!important;flex-wrap:wrap;gap:6px 12px;margin:9px 0 0!important}.em-provider-status>span{font-size:10px!important;color:#90b4c7!important;font-weight:400!important;overflow-wrap:anywhere}
.em-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;align-content:center}
#outsourcingPanel.em-panel .em-card-actions button,.em-panel .em-card-actions button,#externalMaquilaList .em-card-actions button{font-size:11px!important;line-height:1.3!important;min-height:34px!important;padding:7px 9px!important;border:1px solid #3b667b!important;background:#1a303c!important;color:#d3ecf7!important;font-weight:400!important;box-shadow:none!important}
#outsourcingPanel.em-panel .em-card-actions button.em-primary,.em-panel .em-card-actions button.em-primary,#externalMaquilaList .em-card-actions button.em-primary{background:#07465b!important;border-color:#0db7df!important;color:#adf1ff!important;box-shadow:0 0 8px #00b8e015!important}
#outsourcingPanel.em-panel .em-card-actions button:hover,#externalMaquilaList .em-card-actions button:hover{border-color:#39c6e8!important;background:#204558!important}
body #app #outsourcingPanel.em-panel .em-filters button{background:#22323d!important;border:1px solid #405b6b!important;color:#bcd1de!important;box-shadow:none!important;font-weight:400!important}
body #app #outsourcingPanel.em-panel .em-filters button.selected{background:#073d50!important;border-color:#1ab7df!important;color:#a9edff!important;box-shadow:inset 0 0 9px #00bfe01a!important}
.em-dialog .em-neon-card.em-detail-summary{grid-template-columns:1fr 1.35fr!important}
@media(max-width:1050px){.em-panel .em-neon-card,.em-dialog .em-neon-card{grid-template-columns:minmax(160px,1fr) minmax(230px,1.4fr)!important}.em-card-actions{grid-column:1/-1;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}}
@media(max-width:600px){.em-panel .em-neon-card,.em-dialog .em-neon-card,.em-dialog .em-neon-card.em-detail-summary{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:12px!important}.em-card-actions{grid-template-columns:1fr 1fr}.em-card-facts{grid-template-columns:1fr 1fr}}

/* Compras: misma familia visual que maquilas, sin alterar sus flujos. */
body #app #purchases :is(.apparel-consolidated,.material-consolidated){background:#1b2226!important;border:1px solid #334b57!important;border-radius:13px!important;overflow:hidden;color:#eaf0f3!important}
body #app #purchases :is(.apparel-consolidated,.material-consolidated)>header{background:linear-gradient(105deg,#142a32,#1b252b)!important;padding:16px!important;border-bottom:1px solid #334b57!important;gap:12px}
body #app #purchases :is(.apparel-consolidated,.material-consolidated) h3{font-size:16px!important;font-weight:500!important;line-height:1.35!important;margin:4px 0!important}
body #app #purchases :is(.apparel-consolidated,.material-consolidated) .eyebrow{color:#5de0ff!important;font-size:10px!important;letter-spacing:.12em!important;font-weight:500!important}
body #app #purchases :is(.apparel-consolidated,.material-consolidated) small{color:#a7bbc6!important;font-weight:400!important;font-size:11px!important;line-height:1.5!important}
body #app #purchases :is(.apparel-consolidated,.material-consolidated)>header>span{background:#083443!important;color:#8ce7ff!important;border:1px solid #198aaa!important;border-radius:999px!important;padding:5px 10px!important;font-size:11px!important;white-space:nowrap}
body #app #purchases :is(.material-provider-heading,.provider-divider td){background:#142f3a!important;border-color:#345667!important;padding:11px 14px!important;color:#b8edff!important}
body #app #purchases .material-provider-heading b{color:#b8edff!important;font-weight:500!important;font-size:12px!important}
body #app #purchases .provider-pill{display:inline-flex!important;align-items:center!important;border:1px solid #198aaa!important;background:#083443!important;color:#8ce7ff!important;font-size:11px!important;font-weight:500!important;padding:5px 10px!important;margin-right:10px!important}
body #app #purchases .apparel-table-wrap{max-width:100%;overflow-x:auto;scrollbar-color:#406274 #172126}
body #app #purchases .apparel-table-wrap table{width:100%;border-collapse:collapse}
body #app #purchases :is(.apparel-table-wrap th,.material-list-head){background:#132027!important;color:#9acddd!important;font-size:10px!important;font-weight:500!important;letter-spacing:.03em!important;border-color:#334b57!important}
body #app #purchases .apparel-table-wrap td{background:#1c282f!important;border-color:#334b57!important;padding:10px 9px!important;font-size:12px!important;font-weight:400!important;vertical-align:middle!important}
body #app #purchases .apparel-table-wrap td.size-column{background:#19242b!important;color:#c6e6f3!important;text-align:center!important;min-width:27px}
body #app #purchases .apparel-table-wrap td.size-column-alt{background:#1c303a!important}
body #app #purchases .apparel-table-wrap :is(b,strong){font-weight:500!important;font-size:12px!important}
body #app #purchases .apparel-table-wrap td:has(>strong){color:#6de1ff!important;background:#16323d!important;text-align:center!important}
body #app #purchases .apparel-row-actions{display:flex!important;gap:6px!important;flex-wrap:wrap!important;min-width:110px}
body #app #purchases :is(.apparel-consolidated,.material-consolidated) button{background:#1a303c!important;border:1px solid #3b667b!important;color:#d3ecf7!important;border-radius:8px!important;font-size:11px!important;font-weight:400!important;min-height:34px!important;padding:8px 11px!important;line-height:1.3!important;box-shadow:none!important;white-space:normal!important}
body #app #purchases :is(.apparel-consolidated,.material-consolidated) button:hover{background:#224858!important;border-color:#50c6e5!important}
body #app #purchases :is(.apparel-consolidated,.material-consolidated) button:focus-visible{outline:2px solid #65ddff!important;outline-offset:2px!important}
body #app #purchases :is(.provider-order-confirm,.material-row .complete){background:#07465b!important;border-color:#0db7df!important;color:#adf1ff!important}
body #app #purchases :is(.apparel-consolidated,.material-consolidated) button:is(.danger,.delete,.ml-btn-danger){background:#44252c!important;border-color:#96505e!important;color:#ffbdc8!important}
body #app #purchases .provider-order-footer td{padding:0!important}
body #app #purchases .provider-order-panel{background:linear-gradient(105deg,#142c35,#1b252b)!important;border-left:3px solid #14bddd!important;gap:10px!important;padding:13px 14px!important;grid-template-columns:minmax(210px,1fr) 92px minmax(118px,.52fr) minmax(112px,.48fr) minmax(130px,.52fr) minmax(250px,.95fr)!important}
body #app #purchases .provider-order-copy b{color:#e4f4fc!important;font-size:12px!important;font-weight:500!important}
body #app #purchases .provider-order-panel label{font-weight:400!important;font-size:10px!important;color:#b3c9d4!important;text-transform:none!important;min-width:0}
body #app #purchases .provider-order-panel :is(input,select){background:#142129!important;border:1px solid #3b5969!important;color:#e0eff7!important;border-radius:8px!important;min-width:0!important;min-height:34px!important;font-size:12px!important;font-weight:400!important;padding:7px 9px!important}
body #app #purchases .provider-order-units :is(b,span){background:#12313d!important;border-color:#34758c!important;color:#8ce7ff!important}
body #app #purchases .provider-order-units span{padding-left:4px!important}
body #app #purchases .provider-order-units small{font-size:9px!important;color:#8ad9ee!important}
body #app #purchases .provider-order-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;align-self:end!important}
body #app #purchases .provider-order-actions button{min-height:34px!important;padding:7px 10px!important}
body #app #purchases .provider-order-confirm{grid-column:auto!important;justify-self:stretch;min-width:0}
body #app #purchases .em-general-purchase .purchase-finance{margin-top:10px}
body #app #purchases .purchase-expense-control{grid-template-columns:minmax(140px,1fr) 42px!important;gap:7px!important;padding:9px!important;border:1px solid #365666!important;border-radius:10px!important;background:#13252d!important}
body #app #purchases .purchase-expense-control label{color:#b8d6e3!important;font-size:10px!important;font-weight:500!important}
body #app #purchases .purchase-expense-control input{background:#101d24!important;border:1px solid #40677a!important;color:#eff9ff!important}
body #app #purchases .purchase-expense-control small{grid-column:1/-1;margin:0!important;color:#88a9b8!important;font-size:10px!important;line-height:1.35!important}
body #app #purchases .em-purchase-detail{grid-column:1/-1;margin-top:12px;border:1px solid #334b57;border-radius:10px;background:#151f25;overflow:hidden}
body #app #purchases .em-purchase-detail summary{padding:10px 12px;color:#9ee8ff;font-size:11px;font-weight:500;cursor:pointer}
body #app #purchases .em-purchase-detail table{width:100%;border-collapse:collapse;font-size:11px}
body #app #purchases .em-purchase-detail th{padding:8px 10px;background:#101b21;color:#8ebacc;font-size:9px;font-weight:500;text-align:left;text-transform:uppercase;letter-spacing:.05em}
body #app #purchases .em-purchase-detail td{padding:9px 10px;border-top:1px solid #283c46;color:#d8e8ef;vertical-align:top}
body #app #purchases .em-purchase-detail td:nth-child(3){color:#8ce7ff;white-space:nowrap}
body #app #purchases .em-general-purchase .em-card-actions{grid-template-columns:1fr}
body #app #purchases .material-provider{background:#1b2226!important}
body #app #purchases .material-row{margin:9px!important;padding:13px!important;border:1px solid #334b57!important;border-left:3px solid #14bddd!important;border-radius:11px!important;background:linear-gradient(105deg,#16282f,#1c252b 55%,#192126)!important;grid-template-columns:minmax(180px,1fr) 80px 65px 105px minmax(155px,.7fr)!important;gap:12px!important;font-size:12px!important}
body #app #purchases .material-list-head{grid-template-columns:minmax(180px,1fr) 80px 65px 105px minmax(155px,.7fr)!important;margin:0 9px!important;padding:9px 13px!important;gap:12px!important}
body #app #purchases .material-detail{min-width:0;overflow-wrap:anywhere}
body #app #purchases .material-detail b{font-size:12px!important;font-weight:500!important;color:#eef7fc!important;line-height:1.4!important}
body #app #purchases .material-detail span{color:#b8ccd8!important;font-size:11px!important;line-height:1.5!important}
body #app #purchases .material-row>strong{font-size:12px!important;font-weight:500!important;color:#6de1ff!important}
body #app #purchases .material-row .purchase-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important;justify-content:flex-start!important}
body #app #purchases .material-row .purchase-status{display:inline-flex!important;align-items:center!important;gap:6px!important;background:#24333d!important;color:#bbced8!important;border:1px solid #3a5360!important;border-radius:999px!important;padding:5px 8px!important;font-size:10px!important;font-weight:400!important;white-space:nowrap!important}
body #app #purchases .material-row .purchase-status::before{content:'';width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#91a7b4}
body #app #purchases .material-row .purchase-status.pending{color:#f6d58f!important;background:#342c1d!important;border-color:#796134!important}
body #app #purchases .material-row .purchase-status.pending::before{background:#f5b644;box-shadow:0 0 7px #f5b64477}
body #app #purchases .material-row .purchase-status.ordered{color:#8ce7ff!important;background:#103641!important;border-color:#296477!important}
body #app #purchases .material-row .purchase-status.ordered::before{background:#25d4ff;box-shadow:0 0 8px #25d4ff88}
body #app #purchases .material-row .purchase-status.purchased{color:#9ae5c5!important;background:#19392e!important;border-color:#3c7660!important}
body #app #purchases .material-row .purchase-status.purchased::before{background:#54dca3;box-shadow:0 0 7px #54dca366}
@media(max-width:1180px){body #app #purchases .provider-order-panel{grid-template-columns:minmax(190px,1fr) 92px minmax(112px,.6fr) minmax(110px,.5fr) minmax(125px,.55fr)!important}body #app #purchases .provider-order-actions{grid-column:1/-1!important;justify-self:end!important;min-width:330px!important}}
@media(max-width:1100px){body #app #purchases .material-list-head{display:none!important}body #app #purchases .material-row{grid-template-columns:minmax(180px,1fr) 85px 110px!important}body #app #purchases .material-row .purchase-status{grid-column:2/4;grid-row:2;justify-self:end}body #app #purchases .material-row .purchase-actions{grid-column:1/-1!important}}
@media(max-width:760px){body #app #purchases .provider-order-panel{grid-template-columns:minmax(0,1fr) 92px!important}body #app #purchases .provider-order-copy{grid-column:1/-1!important}body #app #purchases .provider-order-actions{grid-column:1/-1!important;justify-self:stretch!important;min-width:0!important}}
@media(max-width:600px){body #app #purchases :is(.apparel-consolidated,.material-consolidated)>header{align-items:flex-start!important;flex-wrap:wrap!important}body #app #purchases .provider-order-panel{grid-template-columns:minmax(0,1fr)!important}body #app #purchases .provider-order-units,body #app #purchases .provider-order-copy,body #app #purchases .provider-order-actions{grid-column:auto!important}body #app #purchases .material-row{grid-template-columns:minmax(0,1fr) auto!important}body #app #purchases .material-detail{grid-column:1/-1}body #app #purchases .material-row .purchase-status{grid-column:1/-1;grid-row:auto;justify-self:start}body #app #purchases .material-row .purchase-actions button{flex:1}}
