/* ==========================================
   RECEPCIÓN Y DESPACHO (despacho.css)
   Pasos: 1 chofer → 2 envases (Despacho cian / Recepción verde) → 3 movimientos del día
   ========================================== */
.despacho { --desp: #00d2ff; --recep: #2ee88a; --wsp: #25d366; --c: var(--desp);
    --sup: #0a0d10; --sup2: #0f1418; --linea: rgba(255, 255, 255, .07); max-width: 980px; margin: 0 auto; }
.despacho[data-modo="Recepcion"] { --c: var(--recep); }

/* ---------- Cabecera ---------- */
/* X de cerrar dentro del recuadro de la cabecera */
#pantalla-despacho .dr-cerrar { top: 10px; right: max(12px, calc((100% - 980px) / 2 + 12px)); z-index: 6; }
.dr-hero { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: end; padding: 22px 44px 50px 22px; margin-bottom: 18px;
    border-radius: 16px; z-index: 5; border: 1px solid rgba(0, 210, 255, .25);
    background: radial-gradient(120% 140% at 0% 0%, rgba(0, 210, 255, .20), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(46, 232, 138, .14), transparent 60%), #05080a; }
.dr-hero h2 { margin: 0; padding: 0; border: 0; text-align: left; font-size: 24px; font-weight: 700; letter-spacing: .3px;
    background: linear-gradient(90deg, #fff, #9ff0ff 50%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dr-hero-txt p { margin: 4px 0 0; font-size: 13px; color: #8aa3ad; }
.dr-hero-campos { display: grid; grid-template-columns: 170px 210px; gap: 10px; }
.dr-campo { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.dr-campo > span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #9ab; font-weight: 600; letter-spacing: .3px; }
.dr-campo svg { width: 14px; height: 14px; color: var(--wsp); }
.dr-campo input, .dr-campo .calendario-wrap { margin: 0; }
.dr-campo input { height: 38px; border-radius: 10px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; text-transform: none; }
.dr-campo input:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(0, 210, 255, .18); }
.dr-campo-wsp input:focus { border-color: var(--wsp); box-shadow: 0 0 0 3px rgba(37, 211, 102, .2); }
/* Ruta con el camión que va y viene */
.dr-ruta { position: absolute; left: 0; right: 0; bottom: 10px; height: 18px; pointer-events: none;
    background: linear-gradient(90deg, transparent 0 10%, rgba(255, 255, 255, .14) 10% 90%, transparent 90%) center / 100% 1px no-repeat; }
.dr-ruta::after { content: ''; position: absolute; left: 10%; right: 10%; top: 50%; height: 1px; transform: translateY(-50%);
    background: repeating-linear-gradient(90deg, rgba(255, 214, 0, .7) 0 10px, transparent 10px 22px); animation: dr-linea 1s linear infinite; }
@keyframes dr-linea { to { background-position: -22px 0; } }
.dr-ruta-camion { position: absolute; top: -12px; left: 10%; font-size: 22px; z-index: 1; animation: dr-viaje 9s ease-in-out infinite; }
@keyframes dr-viaje { 0% { left: 8%; transform: scaleX(-1); } 45% { left: 86%; transform: scaleX(-1); } 50% { left: 86%; transform: scaleX(1); } 95% { left: 8%; transform: scaleX(1); } 100% { left: 8%; transform: scaleX(-1); } }

/* ---------- Pasos ---------- */
.dr-paso { position: relative; background: var(--sup); border: 1px solid var(--linea); border-radius: 16px; padding: 16px 18px 18px; margin-bottom: 16px; }
.dr-paso-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dr-paso-cab .dr-paso-titulo { margin: 0; }
.dr-paso-titulo { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 15px; font-weight: 600; color: #fff; }
.dr-paso-titulo span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; color: #000; background: var(--accent-cyan); box-shadow: 0 0 12px rgba(0, 210, 255, .5); }

/* ---------- Choferes ---------- */
.dr-choferes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.dr-chofer { --tono: hsl(var(--h, 190) 90% 60%); position: relative; display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 12px 14px; text-align: left;
    background: var(--sup2); border: 1px solid var(--linea); border-radius: 14px; color: #ddd; box-shadow: none; cursor: pointer;
    opacity: 0; animation: dr-entrar .55s cubic-bezier(.2, .9, .3, 1.3) forwards; animation-delay: calc(var(--i, 0) * 90ms);
    transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
/* El hover general de los botones (fondo cian, texto negro) no aplica aquí */
@media (hover: hover) {
    .despacho .dr-chofer:hover { background: var(--sup2); color: #ddd; transform: translateY(-3px); border-color: color-mix(in srgb, var(--tono) 55%, transparent); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
    .despacho .dr-chofer.elegido:hover { background: linear-gradient(135deg, rgba(0, 210, 255, .16), rgba(0, 210, 255, .03)); border-color: var(--accent-cyan); }
    .despacho .dr-chofer:hover .dr-avatar span { color: var(--tono); }
    .despacho .dr-chofer:hover .dr-chofer-txt b { color: #fff; }
    .despacho .dr-chofer:hover .dr-chofer-txt small { color: #8a97a0; }
    .despacho .dr-chofer:hover .dr-check { color: #000; }
    .despacho .dr-chofer:hover .dr-chofer-saldo.pendiente { color: #ffb300; }
    .despacho .dr-chofer:hover .dr-chofer-saldo.ok { color: var(--recep); }
    .despacho .dr-modo button:hover { background: transparent; border: 0; box-shadow: none; color: #fff; }
    .despacho .dr-modo button.activo:hover { color: #000; }
}
.dr-chofer:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(0, 210, 255, .22); }
.dr-avatar { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: conic-gradient(var(--tono), color-mix(in srgb, var(--tono) 30%, #000), var(--tono)); }
.dr-avatar span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #0b0f12; color: var(--tono); font-weight: 800; font-size: 15px; }
.dr-chofer-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dr-chofer-txt b { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-chofer-txt small { font-size: 11px; color: #8a97a0; }
.dr-check { position: absolute; right: 12px; top: 50%; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; color: #000;
    background: var(--accent-cyan); transform: translateY(-50%) scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.dr-chofer.elegido { background: linear-gradient(135deg, rgba(0, 210, 255, .16), rgba(0, 210, 255, .03)); border-color: var(--accent-cyan); box-shadow: 0 0 22px rgba(0, 210, 255, .25); }
.dr-chofer.elegido .dr-check { transform: translateY(-50%) scale(1); }
.dr-avatar::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; }
.dr-avatar span { position: relative; }
.dr-chofer.elegido .dr-avatar::before { animation: dr-girar 2.5s linear infinite; box-shadow: 0 0 14px color-mix(in srgb, var(--tono) 60%, transparent); }
@keyframes dr-girar { to { transform: rotate(360deg); } }
.dr-chofer-saldo { position: absolute; top: -9px; left: 14px; font-size: 10px; font-weight: 600; padding: 2px 9px; border-radius: 10px; background: #111; }
.dr-chofer-saldo:empty { display: none; }
.dr-chofer-saldo.pendiente { color: #ffb300; border: 1px solid #ffb300; animation: dr-latir 1.6s ease-in-out infinite; }
.dr-chofer-saldo.ok { color: var(--recep); border: 1px solid var(--recep); }
@keyframes dr-latir { 50% { transform: scale(1.08); box-shadow: 0 0 10px rgba(255, 179, 0, .45); } }
@keyframes dr-entrar { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Selector Despacho / Recepción ---------- */
.dr-modo { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #000; border: 1px solid var(--linea); min-width: 280px; }
.dr-modo-fondo { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--c);
    box-shadow: 0 4px 18px color-mix(in srgb, var(--c) 45%, transparent); transition: transform .35s cubic-bezier(.4, 1.4, .5, 1), background .3s; }
.despacho[data-modo="Recepcion"] .dr-modo-fondo { transform: translateX(100%); }
.dr-modo button { position: relative; z-index: 1; margin: 0; height: 38px; padding: 0 14px; border: 0; background: transparent; box-shadow: none; color: #9aa; font-size: 13px; font-weight: 600; transition: color .25s; }
.dr-modo button.activo { color: #000; }

/* ---------- Tarjetas de producto ---------- */
.dr-panel { display: none; }
.despacho[data-modo="Despacho"] .dr-panel[data-tipo="Despacho"], .despacho[data-modo="Recepcion"] .dr-panel[data-tipo="Recepcion"] { display: block; animation: dr-panel .4s ease-out; }
@keyframes dr-panel { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.dr-productos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dr-prod { --nivel: 0%; display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--sup2); border: 1px solid var(--linea);
    opacity: 0; animation: dr-entrar .45s ease-out forwards; animation-delay: calc(var(--i, 0) * 70ms); transition: border-color .2s, box-shadow .2s; }
.dr-prod:focus-within { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.dr-prod-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.dr-prod-cab b { font-size: 14px; font-weight: 600; color: #eee; }
.dr-prod:focus-within .dr-prod-cab b { color: #fff; }
.dr-total { min-width: 44px; padding: 3px 10px; border-radius: 10px; text-align: center; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums;
    color: #556; background: rgba(255, 255, 255, .04); transition: color .2s, background .2s; }
.dr-prod.con-datos .dr-total { color: #000; background: var(--c); }
.dr-total.negativo { color: #fff !important; background: #ff4d4d !important; }
.dr-total.salta { animation: dr-salta .35s ease-out; }
@keyframes dr-salta { 40% { transform: scale(1.3); } }
.dr-prod-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dr-campo-num small { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #7d8a92; }
.dr-stepper { display: grid; grid-template-columns: 1fr;   /* sin botones − / +: solo la cantidad */ height: 38px; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid rgba(255, 255, 255, .1); transition: border-color .2s; }
.dr-stepper:focus-within { border-color: var(--c); }
.dr-stepper button { margin: 0; padding: 0; height: 100%; border: 0; border-radius: 0; background: rgba(255, 255, 255, .04); box-shadow: none; color: var(--c); font-size: 18px; font-weight: 700; line-height: 1; }
@media (hover: hover) { .dr-stepper button:hover { background: color-mix(in srgb, var(--c) 22%, transparent); } }
.dr-stepper button.pulso { animation: dr-pulso .3s ease-out; }
@keyframes dr-pulso { 50% { background: var(--c); color: #000; } }
.dr-num { min-width: 0; height: 100%; margin: 0; padding: 0 4px; border: 0; border-radius: 0; background: transparent; text-align: center; font-size: 16px; font-weight: 700; color: #fff;
    font-variant-numeric: tabular-nums; text-transform: none; caret-color: var(--cursor-color); box-shadow: none; }
.dr-num:focus { outline: none; box-shadow: none; border: 0; }

/* Ilustración: bidón (tamaño según litros) o dispensador; el agua sube con el total */
.dr-prod-arte { display: grid; place-items: end center; height: 82px; }
.dr-bidon { display: flex; flex-direction: column; align-items: center; height: calc(80px * var(--alto)); width: calc(52px * var(--alto)); }
.dr-bidon-tapa { width: 38%; height: 10%; min-height: 6px; border-radius: 3px 3px 0 0; background: var(--c); transition: background .3s; }
.dr-bidon-cuerpo, .dr-disp-bidon { position: relative; flex: 1; width: 100%; overflow: hidden; border: 2px solid color-mix(in srgb, var(--c) 70%, #fff); background: rgba(255, 255, 255, .04); }
.dr-bidon-cuerpo { border-radius: 30% 30% 14px 14px / 22% 22% 14px 14px; }
.dr-bidon-cuerpo em { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px #000; }
.dr-agua { position: absolute; left: -50%; bottom: 0; width: 200%; height: max(var(--nivel), 8%); transition: height .5s cubic-bezier(.3, 1.4, .5, 1);
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 85%, #fff), color-mix(in srgb, var(--c) 60%, #003)); opacity: .85; }
.dr-agua::before { content: ''; position: absolute; top: -6px; left: 0; width: 100%; height: 12px; border-radius: 45%; background: inherit; animation: dr-ola 2.2s linear infinite; }
@keyframes dr-ola { from { transform: translateX(0); } to { transform: translateX(-25%); } }
.dr-disp { display: flex; flex-direction: column; align-items: center; width: 46px; height: 80px; }
.dr-disp-bidon { flex: none; width: 30px; height: 28px; border-radius: 10px 10px 4px 4px; }
.dr-disp-cuerpo { position: relative; width: 46px; flex: 1; border-radius: 6px; background: linear-gradient(180deg, #e9eef1, #9aa7ae); }
.dr-disp-cuerpo b { position: absolute; left: 50%; top: 30%; width: 10px; height: 8px; margin-left: -5px; border-radius: 0 0 4px 4px; background: var(--c); }

.dr-ayuda { min-height: 14px; margin: 10px 2px 0; font-size: 12px; color: #8fdcf0; }
.dr-ayuda:empty { margin: 0; min-height: 0; }

/* Barra para guardar: total y botón WhatsApp */
.dr-accion { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 12px 14px; border-radius: 14px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.dr-accion-total small { display: block; font-size: 11px; color: #9ab; }
.dr-accion-total b { font-size: 28px; font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; line-height: 1.1; }
.despacho .dr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; margin: 0; height: 38px; padding: 0 18px; border-radius: 6px;
    font-size: 13px; font-weight: 600; color: var(--wsp); background: transparent; border: 1px solid var(--wsp); box-shadow: none; transition: background .2s, color .2s; }
.despacho .dr-btn::before { content: ''; width: 18px; height: 18px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm4.5 12.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3a.4.4 0 0 0 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.1 5.1 0 0 0 1.1 2.7 11.7 11.7 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6a2.7 2.7 0 0 0 1.8-1.2 2.2 2.2 0 0 0 .1-1.3c0-.1-.2-.2-.5-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm4.5 12.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3a.4.4 0 0 0 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.1 5.1 0 0 0 1.1 2.7 11.7 11.7 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6a2.7 2.7 0 0 0 1.8-1.2 2.2 2.2 0 0 0 .1-1.3c0-.1-.2-.2-.5-.3Z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (hover: hover) { .despacho .dr-btn:hover { background: var(--wsp); color: #000; border-color: var(--wsp); box-shadow: none; transform: none; } }
.despacho .dr-btn:active { transform: scale(.98); }
.despacho .dr-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Animación al guardar: camión que sale (despacho) o llega (recepción) y gotas */
.dr-anim { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 16px; }
.dr-anim-camion { position: absolute; bottom: 90px; left: -60px; font-size: 40px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.dr-anim.corriendo .dr-anim-camion { animation: dr-cruzar 1.5s cubic-bezier(.5, 0, .7, 1) forwards; }
.dr-anim[data-tipo="Recepcion"].corriendo .dr-anim-camion { animation-name: dr-llegar; }
@keyframes dr-cruzar { 0% { left: -60px; transform: scaleX(-1); } 100% { left: 110%; transform: scaleX(-1); } }
@keyframes dr-llegar { 0% { left: 110%; } 100% { left: -60px; } }
.dr-anim i { position: absolute; top: -24px; left: var(--x); font-style: normal; font-size: 18px; opacity: 0; }
.dr-anim.corriendo i { animation: dr-gota 1.3s ease-in forwards; animation-delay: var(--d); }
@keyframes dr-gota { 0% { opacity: 0; transform: translateY(0) rotate(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(420px) rotate(var(--r)); } }

/* ---------- Movimientos del día ---------- */
.dr-saldo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.dr-saldo:empty { display: none; }
.dr-saldo-item { padding: 10px 12px; border-radius: 12px; background: var(--sup2); border: 1px solid var(--linea); }
.dr-saldo-item small { display: block; font-size: 11px; color: #8a97a0; font-weight: 600; }
.dr-saldo-item b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dr-saldo-item span { font-size: 10px; color: #6f7c84; }
.dr-saldo-item.pendiente { border-color: rgba(255, 179, 0, .45); }
.dr-saldo-item.pendiente b { color: #ffb300; }
.dr-saldo-item.ok b { color: var(--recep); }
.dr-saldo-nota { grid-column: 1 / -1; margin: 0; font-size: 11px; color: #6f7c84; }
.dr-movs { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; }
.dr-mov { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--sup2);
    border-left: 3px solid var(--desp); animation: dr-entrar .4s ease-out both; animation-delay: calc(var(--i, 0) * 50ms); }
.dr-mov.Recepcion { border-left-color: var(--recep); }
.dr-mov-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; background: rgba(0, 210, 255, .12); }
.dr-mov.Recepcion .dr-mov-ico { background: rgba(46, 232, 138, .12); }
.dr-mov-txt b { display: block; font-size: 13px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-mov-txt small { font-size: 11px; color: #8a97a0; }
.dr-mov-cant { display: flex; gap: 6px; }
.dr-mov-cant span { min-width: 42px; padding: 4px 6px; border-radius: 8px; text-align: center; font-size: 15px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .05); font-variant-numeric: tabular-nums; }
.dr-mov-cant span small { display: block; font-size: 9px; font-weight: 600; color: #7d8a92; }
.dr-mov-cant span.cero { color: #444; }
.dr-vacio { margin: 0; padding: 22px; text-align: center; color: #667; font-size: 13px; border: 1px dashed rgba(255, 255, 255, .1); border-radius: 12px; }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
    .dr-hero { grid-template-columns: 1fr; padding: 18px 16px 46px; }
    .dr-hero-txt { padding-right: 26px; }
    .dr-hero h2 { font-size: 20px; }
    .dr-hero-campos { grid-template-columns: 1fr 1fr; }
    .dr-productos { grid-template-columns: 1fr; }
    .dr-modo { min-width: 0; width: 100%; }
    .dr-saldo { grid-template-columns: repeat(2, 1fr); }
    .dr-mov { grid-template-columns: 36px minmax(0, 1fr); }
    .dr-mov-ico { width: 36px; height: 36px; }
    .dr-mov-cant { grid-column: 1 / -1; }
    .dr-mov-cant span { flex: 1; }
}
@media (max-width: 480px) {
    .dr-paso { padding: 14px 12px 14px; }
    .dr-hero-campos { grid-template-columns: 1fr; }
    .dr-choferes { grid-template-columns: 1fr 1fr; gap: 8px; }
    .dr-chofer { flex-direction: column; text-align: center; gap: 8px; padding: 14px 8px 12px; }
    .dr-chofer-txt { align-items: center; max-width: 100%; }
    .dr-check { top: 10px; right: 10px; transform: scale(0); }
    .dr-chofer.elegido .dr-check { transform: scale(1); }
    .dr-prod { grid-template-columns: 54px 1fr; gap: 10px; padding: 12px; }
    .dr-prod-arte { height: 70px; transform: scale(.85); transform-origin: bottom center; }
    .dr-accion { flex-direction: column; align-items: stretch; text-align: center; }
    .despacho .dr-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .dr-ruta-camion, .dr-ruta::after, .dr-agua::before, .dr-chofer.elegido .dr-avatar::before, .dr-chofer-saldo.pendiente { animation: none; }
    .dr-chofer, .dr-prod, .dr-mov, .dr-panel { animation-duration: .01s !important; animation-delay: 0s !important; }
    .dr-anim { display: none; }
}

/* El calendario de la fecha se abre encima de los pasos (antes quedaba cortado dentro de la cabecera) */
.dr-hero .calendario-popup { z-index: 50; }
@media (max-width: 760px) {
    /* La ✖ de volver no tapa el título */
    .dr-hero-txt { padding-right: 26px; }
    .dr-hero h2 { line-height: 1.2; }
}
@media (max-width: 480px) { .despacho .dr-btn { white-space: nowrap; font-size: 13px; padding: 0 12px; } }
/* El celular del chofer elegido aparece con un destello verde */
.dr-campo-wsp input.dr-cargado { animation: dr-cargado .9s ease-out; }
@keyframes dr-cargado { 0% { border-color: var(--wsp); box-shadow: 0 0 0 6px rgba(37, 211, 102, .35); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
