/* Paquetes y guías: tarjeta de cliente proporcional (modelo aprobado). Azul oscuro de la app. */
.warehouse-result.p1w{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:0!important;border:1px solid #ECEEF0!important;border-radius:18px!important;background:#fff!important;box-shadow:0 4px 14px rgba(24,42,49,.06)!important;overflow:hidden;width:100%;margin:0 0 12px;text-align:left;cursor:pointer}
.warehouse-result.p1w.selected{border-color:#182A31!important;box-shadow:0 0 0 2px #182A31!important}
.warehouse-result.p1w .wv-row{display:flex;flex-direction:column;flex:1;min-width:0;gap:10px}
.warehouse-result.p1w .wv-main{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:6px;align-items:start;padding:14px;flex:1;min-width:0;border-bottom:1px solid #EEF0F1}
.warehouse-result.p1w .wv-logo{grid-column:1;grid-row:1;height:40px;width:auto;max-width:150px;object-fit:contain;object-position:left center;justify-self:start}
.warehouse-result.p1w .wv-rt{grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.warehouse-result.p1w .wv-ag{height:24px;width:auto;max-width:110px;object-fit:contain}
.warehouse-result.p1w .wh-wait{font-size:12px;font-weight:800;color:#15703A;background:#E3F5EA;border-radius:999px;padding:4px 10px;white-space:nowrap}
.warehouse-result.p1w .wh-wait.warn{color:#8A6D3B;background:#FBF3DE}
.warehouse-result.p1w .wh-wait.late{color:#B3262E;background:#FDE8EE}
.warehouse-result.p1w .wv-name{grid-column:1;grid-row:2;font-size:17px;font-weight:800;color:#182A31;line-height:1.1}
.warehouse-result.p1w .wv-meta{grid-column:1;grid-row:3;font-size:12px;color:#6B7480;line-height:1.3}
.warehouse-result.p1w .wv-cnt{grid-column:2;grid-row:3 / span 2;align-self:end;background:#E52B50;color:#fff;border-radius:14px;padding:8px 12px;text-align:center;min-width:72px}
.warehouse-result.p1w .wv-cnt small{display:block;font-size:10px;color:#fff;font-weight:700;opacity:.9}
.warehouse-result.p1w .wv-cnt b{display:block;font-size:28px;font-weight:800;color:#fff;line-height:1}
.warehouse-result.p1w .wv-chips{grid-column:1;grid-row:4;display:flex;gap:6px;flex-wrap:wrap}
.warehouse-result.p1w .wv-chip{font-size:11px;font-weight:700;border-radius:8px;padding:4px 9px;background:#FDE8EE;color:#B3262E}
.warehouse-result.p1w .wv-btn{display:block!important;margin:12px 14px 14px;background:#182A31!important;color:#fff!important;border-radius:12px;padding:11px;text-align:center;font-weight:800;font-size:14px}

.warehouse-result.p1w .wv-ft{display:flex;justify-content:space-between;gap:8px;padding:0 14px;font-size:12px;font-weight:700;color:#182A31}
.warehouse-result.p1w .wv-ft span:last-child{color:#6B7480;font-weight:600}
.warehouse-result.p1w .wv-chips{display:flex;gap:6px;flex-wrap:wrap}

/* Paquetes y guías: tarjeta pequeña */
.warehouse-result.p1w{border-radius:14px!important;margin:0 0 10px!important}
.warehouse-result.p1w .wv-main{padding:8px 10px!important;row-gap:4px!important}
.warehouse-result.p1w .wv-logo{height:28px!important}
.warehouse-result.p1w .wv-ag{height:16px!important}
.warehouse-result.p1w .wh-wait{font-size:10px!important;padding:2px 7px!important}
.warehouse-result.p1w .wv-name{font-size:14px!important}
.warehouse-result.p1w .wv-meta{font-size:10px!important}
.warehouse-result.p1w .wv-cnt{padding:4px 8px!important;min-width:56px!important}
.warehouse-result.p1w .wv-cnt small{font-size:9px!important}
.warehouse-result.p1w .wv-cnt b{font-size:20px!important}
.warehouse-result.p1w .wv-chip{font-size:10px!important;padding:2px 6px!important}
.warehouse-result.p1w .wv-ft{font-size:10px!important;padding:0 10px!important}
.warehouse-result.p1w .wv-btn{margin:8px 8px 8px!important;padding:7px!important;font-size:12px!important;border-radius:10px!important}
.warehouse-result.p1w .wv-row{gap:6px!important}

/* Paquetes y guías: misma medida que Embalaje y En espera (modelo aprobado) */
.warehouse-result.p1w .wv-main{padding:12px!important;row-gap:6px!important}
.warehouse-result.p1w .wv-logo{height:34px!important}
.warehouse-result.p1w .wv-ag{height:20px!important}
.warehouse-result.p1w .wh-wait{font-size:11px!important;padding:3px 8px!important}
.warehouse-result.p1w .wv-name{font-size:15px!important}
.warehouse-result.p1w .wv-meta{font-size:11px!important}
.warehouse-result.p1w .wv-cnt{padding:6px 10px!important;min-width:64px!important}
.warehouse-result.p1w .wv-cnt b{font-size:24px!important}
.warehouse-result.p1w .wv-chip{font-size:11px!important;padding:3px 8px!important}
.warehouse-result.p1w .wv-ft{font-size:11px!important;padding:0 12px!important}
.warehouse-result.p1w .wv-btn{margin:10px 10px 10px!important;padding:9px!important;font-size:13px!important}
.warehouse-result.p1w{height:245px!important;min-height:245px!important;max-height:245px!important;overflow:hidden}

/* v430 · Registro de envío: tarjeta ordenada, proporcional y con los mismos márgenes (14 px) y espacios (8 px) en todo */
html body .warehouse-result.p1w:not(#_a1){display:flex!important;flex-direction:column!important;padding:0!important;border-radius:18px!important;background:#fff!important;border:1px solid #E6E8E7!important;box-shadow:0 1px 2px rgba(11,18,21,.05),0 4px 14px rgba(11,18,21,.06)!important;overflow:hidden;margin:0 0 12px!important}
html body .warehouse-result.p1w:not(#_a1) .wv-row{display:flex!important;flex-direction:column!important;gap:0!important}
html body .warehouse-result.p1w:not(#_a1) .wv-main{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"logo rt" "name cnt" "meta cnt" "chips chips"!important;gap:8px 12px!important;padding:14px!important;align-items:center!important;border:0!important;background:none!important}
html body .warehouse-result.p1w:not(#_a1) .wv-logo{grid-area:logo!important;height:28px!important;width:auto!important;max-width:120px!important;object-fit:contain!important;object-position:left center!important;margin:0!important}
html body .warehouse-result.p1w:not(#_a1) .wv-rt{grid-area:rt!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin:0!important}
html body .warehouse-result.p1w:not(#_a1) .wv-ag{height:22px!important;width:auto!important;max-width:96px!important;object-fit:contain!important;border-radius:5px}
html body .warehouse-result.p1w:not(#_a1) .wh-wait{font:800 12px/1 Inter,sans-serif!important;padding:6px 10px!important;border-radius:999px!important;white-space:nowrap!important;margin:0!important}
html body .warehouse-result.p1w:not(#_a1) .wv-name{grid-area:name!important;margin:0!important;font:800 17px/1.2 Inter,sans-serif!important;color:#16262D!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .warehouse-result.p1w:not(#_a1) .wv-meta{grid-area:meta!important;margin:0!important;font:600 13px/1.3 Inter,sans-serif!important;color:#6B7479!important;align-self:start}
html body .warehouse-result.p1w:not(#_a1) .wv-cnt{grid-area:cnt!important;align-self:stretch!important;min-width:72px!important;padding:8px 12px!important;border-radius:14px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;background:#E52B50!important;color:#fff!important;text-align:center}
html body .warehouse-result.p1w:not(#_a1) .wv-cnt small{font:700 11px/1.1 Inter,sans-serif!important;color:#fff!important;opacity:.9}
html body .warehouse-result.p1w:not(#_a1) .wv-cnt b{font:800 26px/1 Inter,sans-serif!important;color:#fff!important;margin-top:2px}
html body .warehouse-result.p1w:not(#_a1) .wv-chips{grid-area:chips!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin:0!important}
html body .warehouse-result.p1w:not(#_a1) .wv-chip{font:700 12px/1 Inter,sans-serif!important;padding:6px 10px!important;border-radius:999px!important;background:#EEF1F3!important;color:#16262D!important;border:0!important}
html body .warehouse-result.p1w:not(#_a1) .wv-ft{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;margin:0 14px!important;padding:10px 0 0!important;border-top:1px solid #EEF0EF!important;font:700 13px/1.2 Inter,sans-serif!important;color:#16262D!important}
html body .warehouse-result.p1w:not(#_a1) .wv-ft span:last-child{font-weight:600!important;color:#6B7479!important;text-align:right}
html body .warehouse-result.p1w:not(#_a1) .wv-btn{display:block!important;width:auto!important;margin:12px 14px 14px!important;padding:12px!important;border-radius:14px!important;background:#16262D!important;color:#fff!important;font:800 14px/1 Inter,sans-serif!important;text-align:center}
html body .warehouse-result.p1w.selected:not(#_a1){border-color:#16262D!important;box-shadow:0 0 0 2px #16262D!important}html body .warehouse-result.p1w:not(#_a1) .wh-wait{position:static!important;top:auto!important;right:auto!important;display:inline-flex!important;align-items:center;gap:4px;width:auto!important;background:#E3F5EA!important;color:#15703A!important}
html body .warehouse-result.p1w:not(#_a1) .wh-wait.warn{background:#FBF3DE!important;color:#8A6D3B!important}
html body .warehouse-result.p1w:not(#_a1) .wh-wait.late{background:#FDE8EE!important;color:#B3262E!important}
html body .warehouse-result.p1w:not(#_a1) .wv-rt{flex-wrap:wrap!important;max-width:100%}/* v430 · 3 columnas: la agencia junto a «Shalom → destino» y «Paquetes» de ancho fijo (nada se encima) */
html body .warehouse-result.p1w:not(#_a1) .wv-main{grid-template-columns:auto minmax(0,1fr) 84px!important;grid-template-areas:"logo logo wait" "name name cnt" "ag meta cnt" "chips chips chips"!important;column-gap:8px!important;row-gap:8px!important}
html body .warehouse-result.p1w:not(#_a1) .wv-rt{display:contents!important}
html body .warehouse-result.p1w:not(#_a1) .wv-ag{grid-area:ag!important;height:20px!important;max-width:78px!important;align-self:center}
html body .warehouse-result.p1w:not(#_a1) .wh-wait{grid-area:wait!important;justify-self:end!important}
html body .warehouse-result.p1w:not(#_a1) .wv-meta{align-self:center!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .warehouse-result.p1w:not(#_a1) .wv-cnt{min-width:0!important;width:84px!important;box-sizing:border-box}
/* v439 · arreglo: la zona vieja «rt» creaba columnas de más (el nombre salía cortado y «Paquetes» se encimaba)
   y la altura fija de 245 px escondía el botón «Registrar envío». */
html body .warehouse-result.p1w:not(#_a1) .wv-rt{grid-area:auto!important}
html body .warehouse-result.p1w:not(#_a1){height:auto!important;min-height:0!important;max-height:none!important}
html body .warehouse-result.p1w:not(#_a1) .wv-logo{height:30px!important;min-width:44px;max-width:110px!important}
html body .warehouse-result.p1w:not(#_a1) .wv-name{white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
/* v439 · Clave del día: la clave grande, «Editar» a su lado y el estado visible (antes el texto era blanco sobre blanco) */
html body #view-warehouse #wh2-ticket#wh2-ticket.wh2-band{display:flex!important;flex-direction:column!important;gap:10px!important;padding:16px!important;min-height:0!important;height:auto!important}
html body #view-warehouse #wh2-ticket#wh2-ticket .wh2-band-row{display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important}
html body #view-warehouse #wh2-ticket#wh2-ticket .wh2-band-row #daily-key-input{flex:1 1 auto!important;min-width:0!important;width:auto!important;text-align:left!important;font-size:30px!important;letter-spacing:.18em!important;color:#16262D!important;background:transparent!important;border:0!important;padding:0!important;height:auto!important}
html body #view-warehouse #wh2-ticket#wh2-ticket:not(.is-saved) .wh2-band-row{flex-direction:column!important;align-items:stretch!important}
html body #view-warehouse #wh2-ticket#wh2-ticket:not(.is-saved) .wh2-band-row #daily-key-input{text-align:center!important;background:#F4F6F5!important;border:1px solid #E1E5E3!important;border-radius:14px!important;padding:10px!important}
html body #view-warehouse #wh2-ticket#wh2-ticket .wh2-key-acts{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:8px!important;flex:none!important;width:auto!important}
html body #view-warehouse #wh2-ticket#wh2-ticket:not(.is-saved) .wh2-key-acts{justify-content:stretch!important}
html body #view-warehouse #wh2-ticket#wh2-ticket:not(.is-saved) .wh2-key-acts>button:not([hidden]){flex:1 1 0!important}
html body #view-warehouse #wh2-ticket#wh2-ticket .wh2-key-acts>button{min-width:96px!important;height:42px!important;border-radius:12px!important}
html body #view-warehouse #wh2-ticket#wh2-ticket #daily-key-status{color:#15703A!important;font:700 12.5px/1.3 Inter,sans-serif!important;text-align:left!important;margin:0!important}
html body #view-warehouse #wh2-ticket#wh2-ticket:not(.is-saved) #daily-key-status{color:#6B7479!important;text-align:center!important}
/* v439 · pedido: la clave al medio y el botón también al medio, debajo */
html body #view-warehouse #wh2-ticket#wh2-ticket .wh2-band-row{flex-direction:column!important;flex-wrap:nowrap!important;align-items:center!important;gap:10px!important}
html body #view-warehouse #wh2-ticket#wh2-ticket .wh2-band-row #daily-key-input{width:100%!important;flex:none!important;text-align:center!important}
html body #view-warehouse #wh2-ticket#wh2-ticket .wh2-key-acts{justify-content:center!important;width:100%!important}
html body #view-warehouse #wh2-ticket#wh2-ticket #daily-key-status{text-align:center!important}
/* v439 · proporcional y con márgenes iguales: 16 px por dentro, 12 px entre clave, botón y estado */
html body #view-warehouse #wh2-ticket#wh2-ticket{padding:16px!important;gap:12px!important}
html body #view-warehouse #wh2-ticket#wh2-ticket .wh2-band-row{gap:12px!important;margin:0!important;padding:0!important}
html body #view-warehouse #wh2-ticket#wh2-ticket .wh2-band-row #daily-key-input{height:44px!important;line-height:44px!important;margin:0!important}
html body #view-warehouse #wh2-ticket#wh2-ticket .wh2-key-acts{margin:0!important}
html body #view-warehouse #wh2-ticket#wh2-ticket .wh2-key-acts>button{flex:0 0 auto!important;width:160px!important;margin:0!important}
html body #view-warehouse #wh2-ticket#wh2-ticket:not(.is-saved) .wh2-key-acts>button:not([hidden]){flex:1 1 0!important;width:auto!important}
html body #view-warehouse #wh2-ticket#wh2-ticket #daily-key-status{margin:0!important;padding:0!important}
