/* Tarjeta del interruptor de reparto y GPS: práctica y clara para Caja, Administración y dueño (y estado para el repartidor). */
.service-switch{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 14px;padding:12px 16px;border-radius:14px;background:#fff7e0;border:1px solid #f0d58a;border-left:8px solid #e3a21a;color:#4a2f00}
.service-switch[data-service-state=on]{background:#eaf7ef;border-color:#a9d9bd;border-left-color:#2a9d62;color:#12402a}
.service-switch>div{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 240px}
.service-switch strong{font-size:1.05rem}
.service-switch span{font-size:.92rem}
.service-switch button{flex:0 1 auto;min-height:48px;padding:0 18px;border-radius:12px;font-weight:700}
.service-switch .service-start{border:0;background:var(--accent,#b4232c);color:#fff}
@media(max-width:700px){.service-switch button{flex:1 1 100%}}
/* Cuelga de la página (fuera del contenido): en teléfono necesita su propio margen lateral, como las demás tarjetas */
@media(max-width:1000px){.main>.service-switch{margin:0 14px 14px}}

/* ===== Interruptores pequeños del servicio (debajo de los logos del menú): verde = encendido, rojo = apagado ===== */
.sw-panel{display:grid;gap:2px;margin:8px 0 14px;padding:6px;border-radius:16px;border:1px solid rgba(128,138,158,.32);background:rgba(128,138,158,.09)}
.sw-panel .sw-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:46px;padding:4px 8px 4px 10px;border:0;border-radius:12px;background:transparent;color:inherit;text-align:left;cursor:pointer;box-shadow:none}
.sw-panel .sw-row:focus-visible{outline:3px solid #2a56d8;outline-offset:1px}
.sw-panel .sw-row:disabled{opacity:.6;cursor:progress}
.sw-text{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.sw-text strong{font-size:.92rem;font-weight:650}
.sw-text small{font-size:.78rem;opacity:.88;overflow-wrap:anywhere}
.sw-track{position:relative;flex:none;width:46px;height:26px;border-radius:13px;background:#d93b3b;box-shadow:inset 0 1px 2px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.28),0 0 12px rgba(239,68,68,.7);transition:background-color .2s,box-shadow .2s}
.sw-knob{position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.45);transition:transform .2s}
.sw-row[data-sw-state=on] .sw-track{background:#1eb257;box-shadow:inset 0 1px 2px rgba(0,0,0,.3),0 0 0 1px rgba(255,255,255,.28),0 0 12px rgba(34,197,94,.8)}
.sw-row[data-sw-state=on] .sw-knob{transform:translateX(20px)}
@media (prefers-reduced-motion:reduce){.sw-track,.sw-knob{transition:none}}
