/* Reparto 1.46: rutas, lista y panel. Estilos limitados al delivery. */
body.ey-del .wrap{max-width:560px;padding:8px 12px 24px}
body.ey-del header.top{margin:2px 0 8px;min-height:44px;align-items:center}
body.ey-del header.top h1{display:none}
body.ey-del header.top .sub{font-size:13px;margin:0}
body.ey-del .tabs{position:static;min-height:46px;margin:0 0 10px}
body.ey-del .tabs button{font-size:15px;padding:10px 6px}
body.ey-del #v-ruta{margin-top:0}
body.ey-del #v-ruta>:not(#ey-delivery):not(#r-mapa-wrap){display:none!important}
body.ey-del #ey-delivery{display:block}
body.ey-del #ey-delivery[hidden]{display:none!important}
body.ey-del #r-mapa-wrap{display:none}
body.ey-del .dw-home-head,body.ey-del .dw-route-head{display:flex;align-items:center;gap:8px;margin:10px 0}
body.ey-del .dw-home-head{justify-content:space-between}
body.ey-del #ey-delivery h2{font-size:21px;line-height:1.2;margin:0;overflow-wrap:anywhere}
body.ey-del .dw-route-head>span{flex:1;min-width:0}
body.ey-del .dw-route-head h2{font-size:19px!important}
body.ey-del .dw-route-head small{font-size:12px;color:var(--muted)}
body.ey-del .dw-primary{background:var(--action,var(--blue));color:#fff;border-color:transparent;font-weight:750}
body.ey-del #ey-delivery .rbtn{min-height:44px;padding:9px 11px;border-radius:10px;font-size:14px}
body.ey-del .dw-continue{width:100%;padding:13px;min-height:48px;background:var(--brand-soft);color:var(--ink);border:1px solid var(--line);border-radius:12px;text-align:left;font-size:15px;font-weight:700}
body.ey-del .dw-label{font-size:13px;font-weight:750;color:var(--muted);margin:14px 0 6px}
body.ey-del .dw-route{width:100%;display:flex;align-items:center;gap:12px;padding:13px 12px;margin:7px 0;min-height:76px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;text-align:left}
body.ey-del .dw-route>span:first-child{min-width:0;flex:1}
body.ey-del .dw-route b{display:block;font-size:16px;overflow-wrap:anywhere}
body.ey-del .dw-route small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
body.ey-del .dw-count{font-size:19px;font-weight:750;text-align:center;flex-shrink:0}
body.ey-del .dw-count small{font-weight:500;font-size:11px}
body.ey-del .dw-empty{font-size:14px;color:var(--muted);padding:14px 8px;line-height:1.5}
body.ey-del .dw-tools{display:flex;align-items:flex-start;gap:6px}
body.ey-del .dw-tools>.dw-primary{flex:1}
body.ey-del .dw-more{position:relative;flex:none;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
body.ey-del .dw-more summary{list-style:none;min-width:44px;min-height:44px;text-align:center;padding:6px;font-size:23px;cursor:pointer}
body.ey-del .dw-more>div{position:absolute;right:0;top:48px;z-index:8;display:grid;gap:6px;background:var(--surface);padding:8px;border:1px solid var(--line);border-radius:12px;min-width:190px;box-shadow:0 7px 20px #0002}
body.ey-del .dw-gps{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);margin:8px 0}
body.ey-del .dw-search{width:100%;min-height:44px;padding:9px 12px;border:1px solid var(--line);background:var(--surface);border-radius:10px;color:var(--ink);font-size:15px}
body.ey-del .dw-row{display:flex;align-items:stretch;gap:8px;min-height:74px;border:1px solid var(--line);border-radius:11px;margin:6px 0;padding:8px;background:var(--surface)}
body.ey-del .dw-next{border-left:4px solid var(--action,var(--blue))}
body.ey-del .dw-number{align-self:center;flex:none;width:44px;min-height:44px;border:0;border-radius:50%;background:var(--brand-soft);color:var(--ink);font-size:17px;font-weight:750;cursor:pointer}
body.ey-del .dw-number:disabled{cursor:default;opacity:.65}
body.ey-del .dw-info{display:flex;gap:8px;align-items:center;justify-content:space-between;flex:1;min-width:0;border:0;background:transparent;color:var(--ink);padding:2px;text-align:left;cursor:pointer}
body.ey-del .dw-info>span:first-child{min-width:0;flex:1}
body.ey-del .dw-info b{font-size:15px;display:block;line-height:1.3;overflow-wrap:anywhere}
body.ey-del .dw-info small{font-size:12px;color:var(--muted);display:block;line-height:1.35;margin-top:4px;overflow-wrap:anywhere}
body.ey-del .dw-info>span:first-child small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.ey-del .dw-amount{text-align:right;flex:0 0 auto;max-width:44%}
body.ey-del .dw-amount b{font-size:14px;color:var(--ok)}
body.ey-del .dw-done,body.ey-del .dw-inc{margin-top:12px}
body.ey-del .dw-done>summary,body.ey-del .dw-inc>summary{padding:11px 0;min-height:44px;cursor:pointer;font-weight:700;font-size:14px}
body.ey-del .dw-inc>summary{color:var(--rose)}
body.ey-del #r-gps-aviso{display:none!important}
#ey-map-head{display:none}
body.ey-del.mapa-full #r-mapa-wrap{display:flex!important;position:fixed;inset:0;z-index:70;background:var(--surface);flex-direction:column;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)}
body.ey-del.mapa-full #ey-map-head{display:flex;justify-content:space-between;align-items:center;flex:none;min-height:56px;padding:8px;gap:8px}
body.ey-del.mapa-full #ey-map-head .rbtn{min-height:44px;font-size:14px}
body.ey-del.mapa-full .mapa-caja.full{position:relative!important;inset:auto!important;height:auto!important;width:100%!important;flex:1 1 0;min-height:160px;border:0;margin:0!important;border-radius:0!important}
body.ey-del.mapa-full #r-mapa{position:absolute;inset:0;width:100%;height:100%}
body.ey-del.mapa-full .gm-toolbar,body.ey-del.mapa-full #gm-status,body.ey-del.mapa-full .gm-pro-tabs,body.ey-del.mapa-full .gm-driver-card,body.ey-del.mapa-full .gm-route-legend,body.ey-del.mapa-full .gm-pro-state,body.ey-del.mapa-full .m-pie,body.ey-del.mapa-full #m-exp,body.ey-del.mapa-full #m-capa,body.ey-del.mapa-full #m-cerrar{display:none!important}
body.ey-del.mapa-full .mapa-caja .m-ctrl{top:auto!important;bottom:35px!important;right:12px!important}
body.ey-del.mapa-full .mapa-caja .m-ctrl button{min-width:44px;min-height:44px;background:var(--surface);color:var(--ink)}
body.ey-del.mapa-full #r-mapa-wrap>.gm-pro-summary{display:block!important;position:static!important;transform:none!important;inset:auto!important;width:100%;max-width:none;margin:0;flex:none;border:0;border-radius:0;padding:8px 12px;box-shadow:none;background:var(--surface);color:var(--ink)}
body.ey-del.mapa-full .gm-pro-summary-title,body.ey-del.mapa-full .gm-pro-next-metric{display:none!important}
body.ey-del.mapa-full .gm-pro-numbers{display:flex;justify-content:space-around;gap:8px}
body.ey-del.mapa-full .gm-pro-stat{min-height:35px;padding:0 5px;border:0}
body.ey-del.mapa-full .gm-pro-stat strong{font-size:15px;color:var(--ink)}
body.ey-del.mapa-full .gm-pro-stat span{font-size:11px;color:var(--muted)}
#sh-delivery-stop{z-index:80}
#sh-delivery-stop .ds-panel{max-height:62dvh;max-height:62vh;max-height:62dvh;overflow-y:auto;overscroll-behavior:contain;max-width:560px;padding:12px 14px calc(14px + env(safe-area-inset-bottom,0px));background:var(--surface);color:var(--ink)}
#sh-delivery-stop .sheet-volver{display:none!important}
#sh-delivery-stop .ds-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}
#sh-delivery-stop .ds-head button{min-width:44px;min-height:44px}
#sh-delivery-stop h2{font-size:22px;margin:0 0 6px;overflow-wrap:anywhere}
#sh-delivery-stop .ds-description{font-size:14px;line-height:1.4;margin:4px 0 10px;overflow-wrap:anywhere}
#sh-delivery-stop .ds-money{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:8px 0}
#sh-delivery-stop .ds-money span{font-size:13px;color:var(--muted)}
#sh-delivery-stop .ds-money strong{font-size:22px;color:var(--ok);overflow-wrap:anywhere}
#sh-delivery-stop .ds-actions,#sh-delivery-stop .ds-results{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
#sh-delivery-stop .rbtn,#sh-delivery-stop summary{min-height:44px;font-size:15px;padding:10px 12px}
#sh-delivery-stop .ds-actions .ds-nav{flex:1 1 100%;background:var(--action,var(--blue));color:#fff;text-align:center;justify-content:center}
#sh-delivery-stop .ds-actions>:not(.ds-nav){flex:1;text-align:center;justify-content:center}
#sh-delivery-stop .ds-results>button,#sh-delivery-stop .ds-results>details{flex:1}
#sh-delivery-stop .ds-results summary{border:1px solid var(--line);border-radius:10px;text-align:center;cursor:pointer;list-style:none;font-weight:700}
#sh-delivery-stop .ds-results details .rbtn{display:block;width:100%;margin:6px 0}
#sh-delivery-stop .ds-priority{width:100%;justify-content:center}
#sh-delivery-stop .ds-details{font-size:13px;overflow-wrap:anywhere}
#sh-delivery-stop .ds-details summary{cursor:pointer;color:var(--muted);padding-left:0}
#sh-delivery-stop .ds-no-location{font-size:14px;color:var(--rose);padding:8px 0;flex-basis:100%!important}
@media(max-width:365px){body.ey-del .wrap{padding-left:10px;padding-right:10px}body.ey-del .dw-info b{font-size:14px}body.ey-del .dw-amount b{font-size:13px}}

body.ey-del.ds-open #toast{bottom:auto;top:calc(env(safe-area-inset-top,0px) + 12px);}
body.ey-del.mapa-full .gm-pro-numbers{flex-wrap:nowrap}
body.ey-del.mapa-full .gm-pro-stat{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;gap:3px}
body.ey-del.mapa-full .gm-pro-stat span{white-space:normal;text-align:center}
/* Mapa operativo: cartografía arriba, pedidos independientes debajo. */
body.ey-del.mapa-full #ey-map-head{min-height:52px;padding:6px 8px}
body.ey-del.mapa-full #ey-map-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:750}
#ey-map-tools,#ey-map-list,#ey-map-count{display:none}
body.ey-del.mapa-full #ey-map-tools{display:flex;flex:none;gap:8px;justify-content:space-between;padding:0 8px 6px}
body.ey-del.mapa-full #ey-map-tools button{min-height:44px;padding:8px 10px;font-size:13px}
body.ey-del.mapa-full .mapa-caja.full{flex:0 0 auto;height:clamp(180px,34dvh,340px)!important;min-height:0}
body.ey-del.mapa-full #r-mapa-wrap>.gm-pro-summary{padding:6px 10px}
body.ey-del.mapa-full .gm-pro-stat{min-height:31px}
body.ey-del.mapa-full .gm-pro-stat:last-child{display:none}
body.ey-del.mapa-full #ey-map-count{display:block;flex:none;margin:0;padding:6px 10px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);line-height:1.35}
body.ey-del.mapa-full #ey-map-list{display:block;flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 10px 14px;background:var(--bg);scroll-padding:8px}
body.ey-del #ey-map-list h3{font-size:13px;color:var(--muted);margin:10px 0 6px}
body.ey-del #ey-map-list .dw-inc-title{color:var(--rose)}
body.ey-del .dw-map-row{border:1px solid var(--line);border-radius:11px;padding:8px;margin:6px 0;background:var(--surface)}
body.ey-del .dw-map-row.dw-next{border-left:4px solid var(--action,var(--blue))}
body.ey-del .dw-map-row.dw-selected{outline:2px solid var(--action,var(--blue));outline-offset:-2px}
body.ey-del .dw-map-main{display:flex;gap:8px;min-height:48px}
body.ey-del .dw-map-number{display:flex;align-items:center;justify-content:center;align-self:center;flex:none;width:30px;height:30px;border-radius:50%;background:var(--brand-soft);color:var(--ink);font-size:14px;font-weight:750}
body.ey-del .dw-map-actions{display:flex;gap:8px;margin:6px 0 0 38px}
body.ey-del .dw-map-actions .rbtn{flex:1;min-width:0;min-height:44px;padding:9px 8px;font-size:14px;justify-content:center;text-align:center;text-decoration:none}
body.ey-del.mapa-full #gm-status{display:block!important;flex:none;order:0;font-size:11px;line-height:1.3;min-height:0;max-height:30px;overflow-y:auto;padding:0 10px;margin:0 0 4px;color:var(--muted)}
body.ey-del.mapa-full #gm-status:empty{display:none!important}
body.ey-del.mapa-full.dw-map-expanded .mapa-caja.full{flex:1 1 0;height:auto!important;min-height:120px}
body.ey-del.mapa-full.dw-map-expanded #ey-map-list,body.ey-del.mapa-full.dw-map-expanded #ey-map-count{display:none}
body.ey-del.mapa-full #sh-msg{z-index:90}
@media(max-height:500px){body.ey-del.mapa-full .mapa-caja.full{height:clamp(100px,30dvh,180px)!important}body.ey-del.mapa-full #ey-map-head{min-height:44px}}
