/* =========================================================
   compat.css — STUB (sin reglas activas)
   Motivo: compat quedó vacío; todo se migró a brand-2026.css / components.css.
   Nota: mantenido por compatibilidad / hotfix rápido si alguna vez hace falta.
   ========================================================= */

/* DISABLED: afectaba registro (ma-registro-conductor) */
/*/* MA HOTFIX (driver panel con mapa): #msg como toast; NO afecta registro */
body.role-driver #map ~ #msg:empty{ display:none !important; }
body.role-driver #map ~ #msg{
  position: fixed;
  top: 64px;
  left: 12px;
  right: 12px;
  z-index: 999999;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* ================================
   MA_B2_AVAIL_TOGGLE_CSS01 (2026-02-21)
   Scope: SOLO conductor (body.role-driver)
   ================================ */
body.role-driver .maAvail{
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}

body.role-driver .maAvail__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

body.role-driver .maAvail__title{
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
}

body.role-driver .maAvail__hint{
  font-size: 12px;
  opacity: .85;
  margin-top: 2px;
}

/* switch */
body.role-driver .maSwitch{
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select:none;
}

body.role-driver .maSwitch input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
}

body.role-driver .maSwitch__track{
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.18);
  position: relative;
  transition: background .15s ease, border-color .15s ease;
}

body.role-driver .maSwitch__track::after{
  content:"";
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  position:absolute;
  top: 2px;
  left: 2px;
  transition: left .15s ease;
}

body.role-driver .maSwitch input:checked + .maSwitch__track{
  background: rgba(0, 200, 120, .35);
  border-color: rgba(0, 200, 120, .45);
}

body.role-driver .maSwitch input:checked + .maSwitch__track::after{
  left: 26px;
}
/* /MA_B2_AVAIL_TOGGLE_CSS01 */
