.admin-login-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 10%,rgba(39,184,170,.2),transparent 28%),linear-gradient(140deg,#031d23,#063c45);padding:30px}.admin-login-card{width:min(450px,100%);background:white;border-radius:25px;padding:34px;box-shadow:0 35px 90px rgba(0,0,0,.3)}.admin-logo{display:flex;align-items:center;gap:10px;margin-bottom:28px}.admin-logo img{width:62px;height:62px}.admin-logo div{display:flex;flex-direction:column;font-size:13px;line-height:1}.admin-logo b{color:#08373f}.admin-logo span{color:#0d9b91;font-weight:950;margin-top:5px}.admin-kicker,.editor-kicker{font-size:10px;color:#0d938a;font-weight:950;letter-spacing:1.7px}.admin-login-card h1{font-size:31px;margin:9px 0}.admin-login-card>p{color:#6e8185;font-size:14px;margin-bottom:25px}.admin-login-card label{margin-bottom:14px}.admin-login-card small{display:block;margin-top:18px;color:#859699;text-align:center}.login-error{background:#fff0ef;color:#b03e39;border:1px solid #ffd4d1;border-radius:12px;padding:11px 13px;margin-bottom:14px;font-size:13px}.setup-card{width:min(520px,100%)}.admin-body{background:#f0f6f5;min-height:100vh}.admin-layout{display:grid;grid-template-columns:245px 1fr;min-height:100vh}.admin-sidebar{background:#062c34;color:white;padding:22px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:20}.admin-side-brand{display:flex;align-items:center;gap:10px;padding:0 8px 22px;border-bottom:1px solid rgba(255,255,255,.08)}.admin-side-brand img{width:48px;height:48px}.admin-side-brand div{display:flex;flex-direction:column;font-size:11px;font-weight:900}.admin-side-brand span{color:#55d7c7;margin-top:3px}.admin-sidebar nav{display:flex;flex-direction:column;gap:6px;margin-top:20px}.admin-sidebar nav a{padding:12px 13px;border-radius:11px;color:#a9c4c1;font-size:13px;font-weight:750}.admin-sidebar nav a.active,.admin-sidebar nav a:hover{background:rgba(59,201,187,.13);color:#7ae1d3}.admin-side-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.08);padding:18px 8px 5px;display:flex;flex-direction:column;gap:4px}.admin-side-bottom small{color:#799c99}.admin-side-bottom b{font-size:13px}.admin-side-bottom a{font-size:11px;color:#61d7c8;margin-top:8px}.admin-main{min-width:0}.admin-top{height:92px;background:white;border-bottom:1px solid #dbe9e7;padding:0 32px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:10}.admin-top>div:first-of-type span{font-size:9px;color:#0d958c;font-weight:950;letter-spacing:1.5px}.admin-top h1{font-size:21px;margin:4px 0 0}.admin-status{font-size:11px;color:#6b8584}.admin-status i{display:inline-block;width:7px;height:7px;background:#22b871;border-radius:50%;margin-right:6px}.admin-menu{display:none;border:0;background:none;font-size:21px}.admin-content{padding:28px;max-width:1500px;margin:auto}.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.admin-stats>div{background:white;border:1px solid #dcebe8;border-radius:18px;padding:20px}.admin-stats span{font-size:11px;color:#6b8281}.admin-stats strong{display:block;font-size:31px;margin:6px 0}.admin-stats small{font-size:10px;color:#96a8a7}.admin-card{background:white;border:1px solid #dcebe8;border-radius:19px;box-shadow:0 10px 35px rgba(8,61,64,.045)}.admin-card-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:22px;border-bottom:1px solid #e3efed}.admin-card-head h2{font-size:18px;margin:0 0 4px}.admin-card-head p{font-size:11px;color:#79908f;margin:0}.filters{display:flex;gap:6px}.filters a{font-size:10px;font-weight:800;padding:7px 9px;border-radius:8px;background:#eff6f5;color:#647c7b}.filters a.active{background:#0b8d87;color:white}.order-list{overflow-x:auto}.order-row{display:grid;grid-template-columns:130px 1.2fr 2fr 130px 20px;gap:18px;align-items:center;padding:16px 22px;border-bottom:1px solid #e9f1f0}.order-row:hover{background:#f7fbfa}.order-row-id,.order-row-client{display:flex;flex-direction:column}.order-row-id span{font-size:11px;font-weight:900;color:#0a7f79}.order-row-id small{font-size:9px;color:#99aaa9;margin-top:4px}.order-row-client b{font-size:13px}.order-row-client span,.order-row-message span{font-size:11px;color:#788c8b;margin-top:4px}.order-arrow{font-size:26px;color:#8eaaa7}.admin-empty{padding:45px;text-align:center;color:#819493}.admin-chat-grid{display:grid;grid-template-columns:1fr 360px;gap:18px}.admin-chat{overflow:hidden}.admin-chat-head{height:70px;border-bottom:1px solid #e2eceb;padding:13px 18px;display:flex;gap:25px;align-items:center}.admin-chat-head>a{font-size:11px;color:#0a8b83;font-weight:900}.admin-chat-head div{display:flex;flex-direction:column}.admin-chat-head b{font-size:12px}.admin-chat-head span{font-size:11px;color:#78908e;margin-top:3px}.admin-chat .messages{height:500px}.order-detail{padding:22px;height:max-content}.detail-title{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.detail-title span:first-child{font-size:9px;color:#0c9288;font-weight:950;letter-spacing:1.4px}.detail-title h2{font-size:18px;margin:5px 0}.detail-list{margin-top:15px}.detail-list>div{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-top:1px solid #e4efed}.detail-list span{font-size:10px;color:#758c8a}.detail-list b{font-size:11px;text-align:right}.detail-list .detail-notes{display:block}.detail-notes p{font-size:11px;line-height:1.5;color:#5c7774}.status-form{border-top:1px solid #e4efed;padding-top:16px;margin-top:6px}.catalog-admin-grid{display:grid;grid-template-columns:1fr 430px;gap:18px}.product-admin-list{display:flex;flex-direction:column}.product-admin-row{border:0;border-bottom:1px solid #e4efed;background:white;padding:15px 20px;display:grid;grid-template-columns:48px 1fr 12px;gap:13px;align-items:center;text-align:left;cursor:pointer}.product-admin-row:hover{background:#f7fbfa}.prod-emoji{width:42px;height:42px;display:grid;place-items:center;background:#eaf7f5;border-radius:12px;font-size:21px}.product-admin-row div{display:flex;flex-direction:column}.product-admin-row b{font-size:12px}.product-admin-row span{font-size:10px;color:#6f8785;margin-top:4px}.product-admin-row i{width:8px;height:8px;border-radius:50%}.product-admin-row i.on{background:#1ab66b}.product-admin-row i.off{background:#c6d1d0}.product-editor{padding:22px;height:max-content;position:sticky;top:110px}.product-editor h2{font-size:21px;margin:6px 0 20px}.toggle-row{display:flex;gap:16px;margin:8px 0 17px}.switch-label{flex-direction:row!important;align-items:center}.switch-label input{width:auto!important}.product-editor .btn-ghost{color:#53716e;border:1px solid #d1e3e0;margin-top:8px}.admin-success{margin-bottom:17px}.admin-success a{font-weight:900}@media(max-width:1000px){.admin-stats{grid-template-columns:1fr 1fr}.admin-chat-grid,.catalog-admin-grid{grid-template-columns:1fr}.product-editor{position:static}.order-row{grid-template-columns:110px 1fr 1.4fr 100px 15px}}@media(max-width:760px){.admin-layout{grid-template-columns:1fr}.admin-sidebar{position:fixed;left:-260px;width:245px;transition:.25s}.admin-sidebar.open{left:0}.admin-menu{display:block}.admin-top{padding:0 18px;justify-content:flex-start;gap:15px}.admin-status{margin-left:auto}.admin-content{padding:15px}.admin-stats{grid-template-columns:1fr 1fr}.order-row{grid-template-columns:100px 1fr 85px 15px}.order-row-message{display:none}.filters{display:none}.admin-chat-grid{grid-template-columns:1fr}.admin-chat .messages{height:55vh}}@media(max-width:460px){.admin-stats{grid-template-columns:1fr}.admin-status{display:none}.admin-login-card{padding:25px}.order-row{grid-template-columns:88px 1fr 15px}.order-row>div:nth-child(4){display:none}}

/* ===== ADMIN V2 ===== */
.logo-clip{width:48px;height:48px;border-radius:50%;overflow:hidden;display:block;clip-path:circle(49% at 50% 50%)}.logo-clip img{width:100%!important;height:100%!important;object-fit:cover;clip-path:circle(49% at 50% 50%)}.admin-logo img{clip-path:circle(49% at 50% 50%);border-radius:50%}.admin-stats.five{grid-template-columns:repeat(5,1fr)}.order-row.v2{grid-template-columns:125px 1fr 1.7fr 150px 115px 18px}.order-row-message{display:flex;flex-direction:column}.order-row-message b{font-size:11px}.order-row-money{display:flex;flex-direction:column}.order-row-money b{font-size:12px}.order-row-money small{font-size:9px;color:#7c918f;margin-top:4px}.weight-form{border-top:1px solid #e4efed;margin-top:15px;padding-top:15px}.weight-form h3{font-size:13px;margin:0 0 10px}.weight-row{display:grid;grid-template-columns:1fr 128px;gap:10px;align-items:center;padding:10px 0;border-top:1px solid #edf3f2}.weight-row>div:first-child{display:flex;flex-direction:column}.weight-row b{font-size:11px}.weight-row small{font-size:9px;color:#7b908e;margin-top:3px}.kg-input{display:flex;align-items:center;border:1px solid #cfe2e0;border-radius:10px;overflow:hidden}.kg-input input{width:100%;border:0;padding:9px;outline:none}.kg-input span{font-size:10px;padding-right:8px;color:#738b89}.order-total-line{display:flex;justify-content:space-between;padding:14px 0;font-size:12px}.order-actions-stack{display:grid;gap:8px;margin-top:10px}.btn-soft{background:#e8f6f3;color:#087d76}.btn-delivery{background:linear-gradient(135deg,#ffab3d,#e77b16);color:#fff}.btn-dark{background:#123c42;color:#fff}.btn-ghost-admin{border:1px solid #cfe0de;background:#fff;color:#476a67}.cash-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.cash-stats>div{background:#fff;border:1px solid #dcebe8;border-radius:18px;padding:20px}.cash-stats span{font-size:11px;color:#6b8281}.cash-stats strong{display:block;font-size:26px;margin:7px 0}.cash-stats small{font-size:10px;color:#96a8a7}.cash-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:18px}.cash-list>a,.cut-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:15px 20px;border-top:1px solid #e5efed}.cash-list>a:hover{background:#f7fbfa}.cash-list div,.cut-row>div{display:flex;flex-direction:column}.cash-list b,.cut-row b{font-size:12px}.cash-list span,.cut-row span,.cut-row small{font-size:10px;color:#7e9290;margin-top:4px}.cut-row>div:last-child{text-align:right}.driver-shell{background:#fff;border:1px solid #dcebe8;border-radius:20px;overflow:hidden}.driver-top{padding:20px;display:flex;justify-content:space-between;gap:20px;align-items:center}.driver-top h2{margin:5px 0}.driver-top p{font-size:11px;color:#748b89;margin:0}.driver-map{height:58vh;min-height:430px}.driver-controls{display:flex;gap:10px;align-items:center;padding:15px 20px;border-top:1px solid #dcebe8}.driver-controls span{font-size:11px;color:#5f7876}.driver-note{padding:0 20px 18px;font-size:10px;color:#748b89}.admin-chat .plus-menu{left:0}.admin-chat .msg-own{background:linear-gradient(135deg,#0f9d94,#087b85);color:white}.admin-chat .msg-other{background:#fff;color:#082a32}
@media(max-width:1200px){.admin-stats.five{grid-template-columns:repeat(3,1fr)}.order-row.v2{grid-template-columns:110px 1fr 1.5fr 120px 105px 15px}}@media(max-width:900px){.cash-grid{grid-template-columns:1fr}.admin-stats.five,.cash-stats{grid-template-columns:1fr 1fr}}@media(max-width:600px){.admin-stats.five,.cash-stats{grid-template-columns:1fr}.driver-top,.driver-controls{align-items:stretch;flex-direction:column}.driver-map{height:50vh;min-height:340px}}

/* ===== GPS / RUTA V3 ===== */
.driver-route-bar{display:grid;grid-template-columns:1fr 1fr 1fr 1.6fr;gap:1px;background:#dcebe8;border-top:1px solid #dcebe8;border-bottom:1px solid #dcebe8}.driver-route-bar>div{background:#f8fcfb;padding:13px 16px;min-width:0}.driver-route-bar span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#7b918e;margin-bottom:5px}.driver-route-bar b{display:block;font-size:11px;color:#123b40;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.driver-route-bar b.ok{color:#088b78}.driver-controls .btn[hidden]{display:none!important}.driver-controls .btn{white-space:nowrap}.driver-road b{white-space:normal}.leaflet-overlay-pane path{stroke:#0c9f95}.mb-map-marker>div span{display:block;transform:rotate(45deg);line-height:1}
@media(max-width:900px){.driver-route-bar{grid-template-columns:1fr 1fr}.driver-road{grid-column:1/-1}}
@media(max-width:600px){.driver-route-bar{grid-template-columns:1fr}.driver-road{grid-column:auto}.driver-controls .btn{width:100%;text-align:center;justify-content:center}.driver-controls span{text-align:center}}

/* V4 · Reparto con PIN */
.admin-sidebar nav a i{width:20px;text-align:center;margin-right:8px}.admin-menu i{margin:0}.driver-controls{flex-wrap:wrap}.driver-controls .btn i{margin-right:7px}.btn-deliver-pin{background:linear-gradient(135deg,#0abf9c,#08787e);color:#fff;margin-left:auto}.btn-deliver-pin:disabled{opacity:.52;cursor:not-allowed;transform:none}.delivery-success{margin:0 20px 15px;padding:14px 16px;border-radius:14px;background:#e7f8ef;border:1px solid #bce8ce;color:#1b7041;display:flex;align-items:center;gap:12px}.delivery-success[hidden]{display:none}.delivery-success>i{font-size:24px}.delivery-success>div{display:flex;flex-direction:column}.delivery-success b{font-size:12px}.delivery-success span{font-size:10px;margin-top:3px}.delivery-pin-modal.open{display:grid}.pin-modal-card{position:relative;width:min(430px,calc(100vw - 30px));background:#fff;border-radius:22px;padding:28px;box-shadow:0 28px 80px rgba(2,38,43,.3);text-align:center}.pin-modal-card .modal-close{position:absolute;right:14px;top:14px}.pin-modal-icon{width:54px;height:54px;margin:0 auto 14px;border-radius:16px;background:#e9f7f4;display:grid;place-items:center;color:#07877e;font-size:21px}.pin-modal-card h2{margin:7px 0 8px;font-size:23px}.pin-modal-card>p{margin:0 auto 20px;color:#6c8280;font-size:11px;max-width:300px;line-height:1.55}.pin-inputs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:17px 0}.pin-inputs input{width:100%;height:62px;border:1px solid #cce2df;border-radius:14px;text-align:center;font-size:28px;font-weight:950;color:#073c42;outline:none;background:#fbfefd}.pin-inputs input:focus{border-color:#0aa69b;box-shadow:0 0 0 3px rgba(10,166,155,.12)}.pin-error{padding:10px 12px;margin:0 0 12px;border-radius:10px;background:#fff0ef;color:#af3832;font-size:10px}.pin-error[hidden]{display:none}.admin-delivered-state{display:flex;align-items:center;gap:11px;padding:14px;border-radius:13px;background:#e8f7ee;color:#247348}.admin-delivered-state>i{font-size:23px}.admin-delivered-state>div{display:flex;flex-direction:column}.admin-delivered-state b{font-size:11px}.admin-delivered-state span{font-size:9px;margin-top:3px}.admin-chat .plus-menu button{display:flex;align-items:center;gap:9px}.admin-chat .plus-menu button i{width:17px;text-align:center;color:#0b8c84}
@media(max-width:700px){.btn-deliver-pin{margin-left:0}.driver-controls .btn{width:100%}.pin-modal-card{padding:24px 18px}.pin-inputs input{height:58px}}


/* ===== V4.1 · FIX modal PIN sobre Leaflet ===== */
.delivery-pin-modal{
  z-index:10000!important;
}
.delivery-pin-modal.open{
  display:grid!important;
}
.delivery-pin-modal .pin-modal-card{
  position:relative;
  z-index:10001!important;
}
body.delivery-modal-open{
  overflow:hidden!important;
}

/* ===== V5 · MAPA MODERNO + FOLLOW DRIVER ===== */
.driver-map{position:relative;background:#eaf0ef}
.driver-map .maplibregl-canvas{outline:none}
.driver-map .maplibregl-ctrl-top-left{top:12px;left:12px}
.driver-map .maplibregl-ctrl-group{border-radius:14px;overflow:hidden;box-shadow:0 8px 24px rgba(7,55,61,.14)}
.driver-map .maplibregl-ctrl-group button{width:36px;height:36px}
.driver-map .maplibregl-ctrl-attrib{font-size:8px!important;background:rgba(255,255,255,.82)!important;border-radius:8px 0 0 0}
.mb-gl-driver-marker{position:relative;width:56px;height:56px;display:grid;place-items:center;pointer-events:auto}
.mb-gl-driver-halo{position:absolute;width:56px;height:56px;border-radius:50%;background:rgba(11,169,157,.18);box-shadow:0 0 0 8px rgba(11,169,157,.09);animation:mbDriverPulse 1.9s ease-out infinite}
.mb-gl-driver-ring{position:relative;width:48px;height:48px;border-radius:50%;background:#fff;padding:3px;box-sizing:border-box;box-shadow:0 8px 24px rgba(3,39,44,.28),0 0 0 2px rgba(255,255,255,.95);overflow:hidden;display:block}
.mb-gl-driver-ring img{display:block;width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important;object-fit:cover;border-radius:50%;clip-path:circle(49% at 50% 50%)}
.mb-gl-destination-marker{width:46px;height:54px;display:flex;align-items:flex-start;justify-content:center;filter:drop-shadow(0 8px 12px rgba(4,58,64,.24))}
.mb-gl-destination-marker>span{width:42px;height:42px;border-radius:50% 50% 50% 8px;transform:rotate(-45deg);display:grid;place-items:center;background:linear-gradient(135deg,#10b9a9,#087b83);border:3px solid #fff;box-sizing:border-box}
.mb-gl-destination-marker i{font-size:18px;color:#fff;transform:rotate(45deg)}
.maplibregl-popup-content{border-radius:13px!important;padding:10px 12px!important;font-size:11px;box-shadow:0 12px 30px rgba(5,47,53,.16)!important}
.maplibregl-popup-close-button{font-size:18px;padding:2px 7px}
@keyframes mbDriverPulse{0%{transform:scale(.78);opacity:.9}70%{transform:scale(1.35);opacity:0}100%{transform:scale(1.35);opacity:0}}
@media(max-width:600px){
  .driver-map .maplibregl-ctrl-top-left{top:8px;left:8px}
  .driver-map .maplibregl-ctrl-group button{width:34px;height:34px}
  .mb-gl-driver-marker{width:50px;height:50px}
  .mb-gl-driver-halo{width:50px;height:50px}
  .mb-gl-driver-ring{width:44px;height:44px}
  .mb-gl-driver-ring img{width:38px!important;height:38px!important;max-width:38px!important;max-height:38px!important}
  .mb-gl-destination-marker{transform:scale(.92);transform-origin:bottom center}
}

/* =========================================================
   V6 · REPARTO LIMPIO + GUIADO DENTRO DEL MAPA
   ========================================================= */
.driver-shell-v6{overflow:visible}
.driver-map-stage{position:relative;overflow:hidden;background:#071217;border-top:1px solid #17343b;border-bottom:1px solid #17343b}
.driver-shell-v6 .driver-map{background:#071217;border:0}
.driver-shell-v6 .maplibregl-ctrl-group{background:#11252b!important;border:1px solid rgba(255,255,255,.08)!important;box-shadow:0 10px 28px rgba(0,0,0,.28)!important}
.driver-shell-v6 .maplibregl-ctrl-group button{background:transparent!important}
.driver-shell-v6 .maplibregl-ctrl-group button+button{border-top-color:rgba(255,255,255,.08)!important}
.driver-shell-v6 .maplibregl-ctrl-icon{filter:invert(1) brightness(1.8)}
.driver-shell-v6 .maplibregl-ctrl-attrib{color:#bac9cb!important;background:rgba(4,15,19,.78)!important}
.driver-shell-v6 .maplibregl-ctrl-attrib a{color:#dbe9ea!important}
.driver-guidance-bubble{position:absolute;z-index:8;left:50%;bottom:20px;transform:translateX(-50%);width:min(640px,calc(100% - 42px));min-height:64px;padding:10px 16px 10px 11px;box-sizing:border-box;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:rgba(7,25,31,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 18px 50px rgba(0,0,0,.34);color:#fff;display:flex;align-items:center;gap:12px;pointer-events:none}
.driver-guidance-icon{width:44px;height:44px;min-width:44px;border-radius:14px;background:linear-gradient(135deg,#19d6c4,#0a8f91);display:grid;place-items:center;color:#fff;font-size:18px;box-shadow:0 8px 22px rgba(15,203,188,.22)}
.driver-guidance-bubble strong{display:block;min-width:0;font-size:15px;line-height:1.25;font-weight:900;letter-spacing:-.15px;white-space:normal}
.driver-controls-v6{justify-content:flex-start}
.driver-controls-v6 [data-driver-state]{margin-left:auto}
.driver-controls-v6 .btn-dark{background:#0a3038;color:#fff;border:1px solid #164a53}
.driver-controls-v6 .btn-dark:not(:disabled):hover{background:#0d3b44}

@media(max-width:700px){
  .driver-top{padding:15px}
  .driver-top h2{font-size:18px}
  .driver-top p{font-size:9px;line-height:1.45}
  .driver-map{height:58dvh;min-height:390px}
  .driver-guidance-bubble{bottom:12px;width:calc(100% - 22px);min-height:56px;padding:8px 11px 8px 8px;border-radius:17px;gap:9px}
  .driver-guidance-icon{width:39px;height:39px;min-width:39px;border-radius:12px;font-size:16px}
  .driver-guidance-bubble strong{font-size:12px}
  .driver-controls-v6{display:grid;grid-template-columns:1fr 1fr;padding:11px;gap:8px}
  .driver-controls-v6 .btn{width:auto!important;min-width:0;padding:11px 10px;font-size:10px}
  .driver-controls-v6 [data-start-driver]{grid-column:1/-1}
  .driver-controls-v6 [data-driver-state]{grid-column:1/-1;margin:0;text-align:center;font-size:9px}
}

/* ===== V7 · ADMIN CATÁLOGO ===== */
.prod-media-mini{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border-radius:13px;overflow:hidden;background:#e7f6f3;font-size:23px}.prod-media-mini img{width:100%;height:100%;object-fit:cover}.product-visual-box{margin:4px 0 16px;padding:15px;border:1px solid #dcebea;border-radius:16px;background:#f9fdfc}.product-image-preview{display:flex;align-items:center;gap:11px;margin-top:4px;padding:9px;border:1px solid #d9e8e6;border-radius:13px;background:#fff}.product-image-preview img{width:82px;height:62px;object-fit:cover;border-radius:10px}.product-image-preview small{color:#688084;font-size:10px;font-weight:800}.product-admin-row{grid-template-columns:48px 1fr 10px}.product-admin-row .prod-media-mini+div{min-width:0}.product-editor select{width:100%;border:1px solid #cfe2e0;border-radius:12px;padding:13px;background:#fff;color:#173f45}.product-editor [hidden]{display:none!important}

/* =========================================================
   V8 · CENTRO DE REPARTO PERMANENTE + COLA DE ENTREGAS
   ========================================================= */
.driver-shell-v8{overflow:visible;background:#fff}
.driver-top-v8{padding:18px 20px}
.driver-top-v8 h2{margin:5px 0 3px}
.driver-queue-counter{display:flex;align-items:center;gap:9px;padding:10px 13px;border-radius:14px;background:#edf8f6;color:#087c75;font-size:11px;font-weight:850;white-space:nowrap}
.driver-queue-counter>i{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#d9f2ee}
.driver-queue-counter b{font-size:15px;margin-right:3px}
.driver-map-stage-v8{position:relative;overflow:hidden;background:#071217;border-top:1px solid #17343b;border-bottom:1px solid #17343b}
.driver-shell-v8 .driver-map{height:65vh;min-height:500px;background:#071217;border:0}
.driver-shell-v8 .maplibregl-ctrl-group{background:#11252b!important;border:1px solid rgba(255,255,255,.08)!important;box-shadow:0 10px 28px rgba(0,0,0,.28)!important}
.driver-shell-v8 .maplibregl-ctrl-group button{background:transparent!important}
.driver-shell-v8 .maplibregl-ctrl-group button+button{border-top-color:rgba(255,255,255,.08)!important}
.driver-shell-v8 .maplibregl-ctrl-icon{filter:invert(1) brightness(1.8)}
.driver-shell-v8 .maplibregl-ctrl-attrib{color:#bac9cb!important;background:rgba(4,15,19,.78)!important}
.driver-shell-v8 .maplibregl-ctrl-attrib a{color:#dbe9ea!important}
.driver-idle-card{position:absolute;z-index:7;left:50%;top:24px;transform:translateX(-50%);display:flex;align-items:center;gap:11px;padding:11px 15px;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(7,25,31,.88);backdrop-filter:blur(16px);color:#fff;box-shadow:0 16px 40px rgba(0,0,0,.25);pointer-events:none;min-width:285px}
.driver-idle-card[hidden]{display:none!important}
.driver-idle-icon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#16cfbd,#0b8388);font-size:17px}
.driver-idle-card>div{display:flex;flex-direction:column}.driver-idle-card b{font-size:12px}.driver-idle-card small{font-size:9px;color:#acc3c3;margin-top:3px}
.driver-active-order{position:absolute;z-index:7;top:18px;right:18px;display:flex;align-items:center;gap:9px;padding:9px 12px;border:1px solid rgba(255,255,255,.1);border-radius:15px;background:rgba(7,25,31,.9);color:#fff;backdrop-filter:blur(12px);box-shadow:0 12px 32px rgba(0,0,0,.24)}
.driver-active-order[hidden]{display:none!important}.driver-active-order>span{width:36px;height:36px;border-radius:11px;background:#0b8f8a;display:grid;place-items:center}.driver-active-order>div{display:flex;flex-direction:column}.driver-active-order small{font-size:8px;color:#87aaa8;letter-spacing:.1em}.driver-active-order b{font-size:11px;margin-top:2px}
.driver-controls-v8{display:grid;grid-template-columns:auto auto auto 1fr;gap:9px;align-items:center;padding:12px 18px}
.driver-controls-v8 .btn{min-width:145px;justify-content:center}
.driver-controls-v8 [data-driver-state]{justify-self:end;font-size:10px;color:#68807e;text-align:right}
.driver-plus-btn{position:relative;width:46px;height:46px;border:0;border-radius:15px;background:#e6f5f2;color:#07887f;display:grid;place-items:center;font-size:18px;cursor:pointer;transition:.2s}
.driver-plus-btn:hover{transform:translateY(-1px);background:#d8f0ec}.driver-plus-btn>span{position:absolute;right:-5px;top:-5px;min-width:20px;height:20px;border-radius:10px;padding:0 5px;display:grid;place-items:center;background:#f29632;color:#fff;font-size:9px;font-weight:950;box-shadow:0 4px 10px rgba(201,104,12,.3)}.driver-plus-btn>span[hidden]{display:none!important}
.driver-queue-drawer{position:fixed;inset:0;z-index:12000;pointer-events:none;visibility:hidden}.driver-queue-drawer.open{pointer-events:auto;visibility:visible}.driver-drawer-backdrop{position:absolute;inset:0;border:0;background:rgba(2,18,22,.48);opacity:0;transition:.22s}.driver-queue-drawer.open .driver-drawer-backdrop{opacity:1}.driver-queue-drawer>aside{position:absolute;right:0;top:0;bottom:0;width:min(440px,92vw);background:#f7fbfa;box-shadow:-20px 0 70px rgba(1,26,31,.28);transform:translateX(102%);transition:.26s ease;display:flex;flex-direction:column}.driver-queue-drawer.open>aside{transform:translateX(0)}
.driver-drawer-head{padding:22px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #dceae8;background:#fff}.driver-drawer-head h3{margin:5px 0 0;font-size:20px}.driver-drawer-head>button{width:38px;height:38px;border:0;border-radius:12px;background:#edf5f4;color:#486a68;cursor:pointer}
.driver-queue-list{padding:14px;display:grid;gap:10px;overflow:auto}.driver-queue-empty{padding:55px 18px;text-align:center;color:#718a88;display:flex;flex-direction:column;align-items:center}.driver-queue-empty i{font-size:34px;color:#16a79c;margin-bottom:12px}.driver-queue-empty b{font-size:13px;color:#244c50}.driver-queue-empty span{font-size:10px;max-width:260px;margin-top:5px;line-height:1.45}
.driver-queue-item{background:#fff;border:1px solid #dceae8;border-radius:17px;padding:13px;display:grid;grid-template-columns:44px 1fr auto;gap:11px;align-items:center}.driver-queue-order-icon{width:44px;height:44px;border-radius:13px;background:#e6f5f2;color:#0b8d85;display:grid;place-items:center;font-size:16px}.driver-queue-copy{display:flex;flex-direction:column;min-width:0}.driver-queue-copy small{font-size:8px;color:#0a9188;font-weight:950;letter-spacing:.08em}.driver-queue-copy b{font-size:12px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.driver-queue-copy span{font-size:9px;color:#78908e;margin-top:3px}.driver-queue-item .btn{padding:9px 10px;font-size:9px;white-space:nowrap}.driver-queue-item .btn:disabled{opacity:.5;cursor:not-allowed}
.driver-new-order-toast{position:fixed;z-index:13000;right:24px;bottom:24px;width:min(520px,calc(100vw - 30px));padding:13px 46px 13px 13px;border-radius:20px;background:#fff;border:1px solid #dbe9e7;box-shadow:0 24px 70px rgba(1,30,35,.3);display:grid;grid-template-columns:46px 1fr auto;gap:11px;align-items:center;animation:driverToastIn .28s ease}.driver-new-order-toast[hidden]{display:none!important}.driver-toast-icon{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#0dc8b5,#087e86);color:#fff;display:grid;place-items:center;font-size:18px}.driver-toast-copy{display:flex;flex-direction:column;min-width:0}.driver-toast-copy small{font-size:8px;color:#0a9389;font-weight:950;letter-spacing:.1em}.driver-toast-copy b{font-size:13px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.driver-toast-copy span{font-size:9px;color:#718986;margin-top:3px}.driver-new-order-toast .btn{font-size:9px;padding:10px 12px;white-space:nowrap}.driver-toast-close{position:absolute;right:10px;top:9px;width:28px;height:28px;border:0;border-radius:9px;background:#edf5f4;color:#68807e;cursor:pointer}@keyframes driverToastIn{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}
.driver-start-modal{z-index:12500}.driver-start-modal.open{display:grid!important}.driver-start-card{z-index:12501}.driver-start-card .btn{justify-content:center}
.admin-delivery-queued{display:flex;align-items:center;gap:11px;padding:14px;border-radius:13px;background:#fff4e8;color:#9a5a12;border:1px solid #ffdfb7}.admin-delivery-queued>i{font-size:22px}.admin-delivery-queued>div{display:flex;flex-direction:column}.admin-delivery-queued b{font-size:11px}.admin-delivery-queued span{font-size:9px;margin-top:3px;line-height:1.35}
@media(max-width:760px){.driver-shell-v8 .driver-map{height:61dvh;min-height:430px}.driver-top-v8{align-items:flex-start}.driver-queue-counter{padding:8px 10px}.driver-controls-v8{grid-template-columns:1fr 1fr 48px;padding:10px}.driver-controls-v8 .btn{min-width:0;width:auto!important;padding:11px 9px;font-size:9px}.driver-controls-v8 [data-driver-state]{grid-column:1/-1;justify-self:stretch;text-align:center}.driver-idle-card{top:13px;min-width:0;width:calc(100% - 98px);padding:9px 11px}.driver-idle-icon{width:34px;height:34px;border-radius:10px}.driver-idle-card b{font-size:10px}.driver-idle-card small{font-size:8px}.driver-active-order{top:10px;right:10px;left:58px}.driver-active-order>span{width:32px;height:32px}.driver-new-order-toast{right:10px;bottom:10px;width:calc(100vw - 20px);grid-template-columns:40px 1fr;padding:11px 38px 11px 11px}.driver-toast-icon{width:40px;height:40px}.driver-new-order-toast .btn{grid-column:1/-1;width:100%;justify-content:center}.driver-guidance-bubble{bottom:10px}}
@media(max-width:460px){.driver-top-v8{display:block}.driver-queue-counter{margin-top:10px;width:max-content}.driver-shell-v8 .driver-map{height:58dvh;min-height:390px}.driver-controls-v8{grid-template-columns:1fr 1fr 44px}.driver-controls-v8 .btn i{margin-right:4px}.driver-plus-btn{width:44px;height:44px}.driver-queue-item{grid-template-columns:40px 1fr}.driver-queue-item .btn{grid-column:1/-1;width:100%;justify-content:center}.driver-active-order{left:53px}.driver-active-order b{font-size:10px}}

/* V9 · pedidos en vivo */
.order-row-wrap{display:grid;grid-template-columns:minmax(0,1fr) 46px;border-bottom:1px solid #e9f1f0;background:#fff}.order-row-wrap>.order-row{border-bottom:0;min-width:0}.order-row-wrap:not(:has(.order-delete-btn)){grid-template-columns:1fr}.order-delete-btn{border:0;border-left:1px solid #edf3f2;background:#fff;color:#d94e48;display:grid;place-items:center;font-size:13px;cursor:pointer;transition:.18s}.order-delete-btn:hover{background:#fff0ef;color:#b82f29}.order-delete-btn:disabled{opacity:.45;cursor:wait}.order-row-status{display:flex;align-items:center;justify-content:flex-start}.admin-order-toast{position:fixed;right:24px;top:108px;z-index:1300;width:min(370px,calc(100vw - 32px));display:grid;grid-template-columns:42px 1fr 28px;gap:11px;align-items:center;background:#fff;border:1px solid #cae6e2;border-radius:16px;padding:12px 12px 12px 14px;box-shadow:0 22px 60px rgba(0,38,45,.2);opacity:0;transform:translateY(-12px) scale(.98);transition:.22s}.admin-order-toast.show{opacity:1;transform:none}.admin-order-toast>span{width:38px;height:38px;border-radius:12px;background:#e5f8f5;color:#078c83;display:grid;place-items:center}.admin-order-toast div{display:flex;flex-direction:column;min-width:0}.admin-order-toast small{font-size:9px;letter-spacing:1.4px;font-weight:950;color:#0c958b}.admin-order-toast b{font-size:13px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-order-toast em{font-size:10px;color:#718886;font-style:normal;margin-top:3px}.admin-order-toast button{width:28px;height:28px;border:0;border-radius:9px;background:#eef6f5;color:#6b8582;cursor:pointer}.admin-order-toast[hidden]{display:none!important}
@media(max-width:760px){.admin-order-toast{top:104px;right:12px;width:calc(100vw - 24px)}.order-row-wrap{grid-template-columns:minmax(0,1fr) 42px}.order-delete-btn{font-size:12px}}
.order-row-wrap:has(.order-delete-btn) .order-row.v2{grid-template-columns:125px 1fr 1.7fr 150px 115px}.order-row-wrap:has(.order-delete-btn) .order-arrow{display:none}
@media(max-width:1000px){.order-row-wrap:has(.order-delete-btn) .order-row.v2{grid-template-columns:110px 1fr 1.4fr 100px 105px}}
@media(max-width:760px){.order-row-wrap:has(.order-delete-btn) .order-row.v2{grid-template-columns:100px 1fr 85px}.order-row-wrap:has(.order-delete-btn) .order-row-message,.order-row-wrap:has(.order-delete-btn) .order-row-status{display:none}}
@media(max-width:460px){.order-row-wrap:has(.order-delete-btn) .order-row.v2{grid-template-columns:88px 1fr}.order-row-wrap:has(.order-delete-btn) .order-row>div:nth-child(4){display:none}}
