/* RAYT Conductor V29 — Tema oscuro opcional, no altera mapas ni imágenes. */
.rayt-driver-theme-entry{display:flex!important;align-items:center!important;gap:12px!important;text-align:left!important;width:100%!important;min-height:61px!important;margin:0!important;padding:12px 0!important;border:0!important;border-top:1px solid #edf0f3!important;border-radius:0!important;background:#fff!important;background-image:none!important;box-shadow:none!important;color:#263242!important;font:inherit!important}
.rayt-driver-theme-icon{width:38px;height:38px;min-width:38px;display:grid;place-items:center;border-radius:11px;background:#f3f5f7;color:#66717e}
.rayt-driver-theme-icon svg{width:22px;height:22px}
.rayt-driver-theme-copy{display:flex;flex-direction:column;flex:1;min-width:0;gap:3px}
.rayt-driver-theme-copy strong{font-size:14px;font-weight:750}
.rayt-driver-theme-copy small{font-size:11px;color:#8993a0;font-weight:500}
.rayt-driver-theme-switch{height:27px;width:47px;flex:0 0 47px;border-radius:30px;background:#d9dfe7;padding:3px;transition:background .2s}
.rayt-driver-theme-switch i{display:block;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0002;transition:transform .2s}
.rayt-night .rayt-driver-theme-switch{background:#ffc928}
.rayt-night .rayt-driver-theme-switch i{transform:translateX(20px)}
.rayt-driver-theme-entry:focus-visible{outline:2px solid #0879ee;outline-offset:3px}

/* Body, application surfaces */
html.rayt-night,body.rayt-night{background:#0c1421!important;color:#e9eef7!important;color-scheme:dark}
.rayt-night .shell,.rayt-night #app,.rayt-night .driver-workspace,.rayt-night .driver-home-mode,.rayt-night .driver-history-mode,.rayt-night .driver-profile-mode,.rayt-night .driver-active-mode{color:#e9eef7}
.rayt-night .top,.rayt-night .card,.rayt-night .panel,.rayt-night .driver-profile-redesigned,.rayt-night .driver-stat-card,.rayt-night .driver-home-top,.rayt-night .driver-profile-overlap,.rayt-night .driver-profile-main,.rayt-night .driver-profile-card,.rayt-night .driver-history-card,.rayt-night .quick-request,.rayt-night .request-detail,.rayt-night .driver-list-head,.rayt-night .driver-incoming,.rayt-night .driver-pending-offer,.rayt-night .driver-active-card,.rayt-night .driver-offer-card,.rayt-night .driver-profile-stats,.rayt-night .driver-activity-card{background-color:#172335!important;color:#e9eef7!important;border-color:#303e51!important;box-shadow:none!important}
.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-card,.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-theme-entry,.rayt-night .rayt-driver-theme-entry{background:#172335!important;color:#e9eef7!important;border-color:#344155!important}
.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-theme-icon,.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-documents-icon,.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-account-icon{background:#27364a!important;color:#c6d3e3!important}
.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-theme-copy small{color:#a6b4c7!important}
.rayt-night .driver-bottom-nav{background:#142033!important;border-color:#344155!important;color:#d9e4f3!important}
.rayt-night .driver-bottom-nav button{color:#b4c3d6!important}
.rayt-night .driver-bottom-nav button.active{color:#ffd041!important}
.rayt-night .muted,.rayt-night .driver-profile-card small,.rayt-night .driver-stat-copy small,.rayt-night .driver-stat-copy span,.rayt-night .driver-profile-card-arrow,.rayt-night .driver-offer-route small,.rayt-night .rayt-offer-stop small{color:#a1b0c4!important}
.rayt-night h1,.rayt-night h2,.rayt-night h3,.rayt-night .driver-stat-copy strong,.rayt-night .driver-profile-card strong,.rayt-night .rayt-offer-stop strong,.rayt-night .driver-profile-redesigned strong{color:#eff4fc!important}
.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-documents-profile-entry,.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-account-entry,.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-settings-entry,.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-ref-profile{background:#172335!important;color:#edf3fa!important;border-color:#344155!important}
.rayt-night .rayt-driver-account-sheet,.rayt-night .rayt-driver-notify-sheet,.rayt-night .rayt-ref-modal section,.rayt-night .rayt-driver-document-row,.rayt-night .request-detail{background:#172335!important;color:#e9eef7!important;border-color:#344155!important}
.rayt-night .rayt-driver-account-sheet h2,.rayt-night .rayt-driver-notify-sheet h2,.rayt-night .rayt-driver-account-delete,.rayt-night .rayt-driver-notify-section strong,.rayt-night #rayt-driver-documents-modal .rayt-driver-document-row strong{color:#edf3fa!important}
.rayt-night .rayt-driver-account-intro,.rayt-night .rayt-driver-account-section-label,.rayt-night .rayt-driver-account-top,.rayt-night .rayt-driver-notify-section small{color:#a6b4c7!important}
.rayt-night .rayt-driver-account-danger,.rayt-night .rayt-driver-notify-section,.rayt-night .rayt-driver-document-status{background:#202e42!important;border-color:#39485e!important;color:#b7c6d9!important}
.rayt-night .rayt-driver-account-x,.rayt-night .rayt-driver-notify-close{color:#c5d1e1!important}
.rayt-night .rayt-driver-document-thumb{border-color:#39485e!important;background:#1c293c!important}
.rayt-night .notice,.rayt-night .empty,.rayt-night .detail-facts,.rayt-night .driver-route,.rayt-night .rayt-offer-route{background-color:#202e42!important;color:#edf3fa!important;border-color:#37485e!important}
.rayt-night input:not([type=checkbox]):not([type=radio]),.rayt-night textarea,.rayt-night select{background:#202e42!important;border-color:#425169!important;color:#eef4fc!important}
.rayt-night input::placeholder,.rayt-night textarea::placeholder{color:#99a9bb!important}
.rayt-night .ghost{background:#29384b!important;color:#f0f5ff!important}
.rayt-night .primary,.rayt-night .rayt-offer-accept{background:#ffc928!important;color:#131820!important}
/* Preserve yellow branding, actual map tiles, photo contents, and onboarding editorial art. */
.rayt-night .rayt-splash,.rayt-night .rayt-setup-screen,.rayt-night .rb-shell{color-scheme:light}

/* V30: corrección de contraste. Los estilos originales del perfil usan
   selectores muy específicos con !important: prevalecían sobre V29. */
html.rayt-night .shell:has(.driver-workspace),
html.rayt-night .shell:has(.driver-workspace) .driver-workspace,
html.rayt-night .driver-workspace.driver-profile-mode,
html.rayt-night .driver-profile-mode .driver-profile.driver-profile-redesigned,
html.rayt-night .driver-profile-mode .driver-profile-redesigned.driver-home-top{
 background-color:#0e1827!important;color:#ebf1f9!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-overlap,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-person{
 background:transparent!important;color:#ebf1f9!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-person h1,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-heading h2,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-vehicle-copy strong,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-copy strong{
 color:#f3f6fc!important;text-shadow:none!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-rating-count,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-vehicle-copy small,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-vehicle-copy span,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-copy small,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-copy span{
 color:#aebbd0!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-vehicle.driver-profile-card,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-card,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-card.wide{
 background:#172335!important;background-image:none!important;color:#ebf1f9!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-vehicle.driver-profile-card{
 border:1px solid #304258!important;border-radius:14px!important;padding:9px 12px!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-vehicle-icon{
 background:#27364a!important;color:#ffd044!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-card,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-card.wide{
 border-color:#35465b!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-card + .driver-stat-card{
 border-left:1px solid #35465b!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions{
 border-color:#35465b!important;background:#172335!important;border-radius:14px!important;
 padding:0 12px!important;margin-left:16px!important;margin-right:16px!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .driver-profile-card,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-account-entry.driver-profile-card,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-documents-profile-entry.driver-profile-card,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-theme-entry.driver-profile-card{
 background:#172335!important;background-image:none!important;border-color:#35465b!important;color:#eef4fc!important;box-shadow:none!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .driver-profile-card + .driver-profile-card{
 border-top:1px solid #35465b!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .driver-profile-ref strong,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-audio-copy strong,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-theme-copy strong,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-documents-entry-copy strong,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-account-copy strong{
 color:#edf3fb!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .driver-profile-ref small,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-audio-copy small,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-theme-copy small,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-documents-entry-copy small,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-account-copy small{
 color:#aebbd0!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .driver-profile-ref-icon,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-audio-icon,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-theme-icon,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-documents-icon,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-account-icon{
 background:#27364a!important;color:#d0dceb!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .driver-profile-card-arrow{
 color:#b4c2d4!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-signout.driver-profile-card{
 background:#202c3d!important;color:#e8eef7!important;border-color:#35465b!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-signout strong{
 color:#eef4fc!important;
}
html.rayt-night .driver-bottom-nav,
html.rayt-night .driver-workspace .driver-bottom-nav{
 background:#142033!important;color:#ced9e7!important;border-color:#344155!important;
}
html.rayt-night .driver-bottom-nav button:not(.active){color:#bac8d9!important;}
html.rayt-night .driver-bottom-nav button.active{color:#ffd044!important;}
/* Consistencia de ventanas sobrepuestas */
html.rayt-night .rayt-driver-account-overlay .rayt-driver-account-sheet,
html.rayt-night #rayt-driver-documents-modal .rayt-driver-account-sheet,
html.rayt-night .rayt-driver-notify-overlay .rayt-driver-notify-sheet{
 background:#172335!important;color:#f0f5fd!important;
}


/* RAYT V31 · Fondos coherentes: Inicio y Perfil. Sólo modo oscuro.
   La V30 aún dejaba el sheet y los encabezados blancos con !important. */
html.rayt-night body,
html.rayt-night #app,
html.rayt-night .shell:has(.driver-workspace),
html.rayt-night .shell:has(.driver-workspace) .driver-workspace.driver-home-mode,
html.rayt-night .shell:has(.driver-workspace) .driver-workspace.driver-profile-mode,
html.rayt-night .shell:has(.driver-workspace) .driver-home-mode > .driver-sheet,
html.rayt-night .shell:has(.driver-workspace) .driver-profile-mode > .driver-sheet {
  background:#0e1827!important;
  background-color:#0e1827!important;
  color:#edf3fb!important;
}
/* Panel de inicio: cubrir toda la superficie sin cambiar el taxi (PNG). */
html.rayt-night .driver-home-mode .driver-home-top.driver-home-matched,
html.rayt-night .driver-home-mode .driver-home-top.driver-profile.driver-home-matched,
html.rayt-night .driver-home-mode .driver-home-matched .driver-profile-overlap,
html.rayt-night .driver-home-mode .driver-home-matched .driver-home-radar {
  background:#0e1827!important;
  background-image:none!important;
  border-color:#283a4f!important;
  box-shadow:none!important;
  color:#edf3fb!important;
}
html.rayt-night .driver-home-mode .driver-home-matched .driver-home-radar h2,
html.rayt-night .driver-home-mode .driver-home-matched .driver-profile-person h1,
html.rayt-night .driver-home-mode .driver-home-matched .driver-profile-rating strong{
  color:#f5f7fd!important;
  opacity:1!important;
  text-shadow:none!important;
}
html.rayt-night .driver-home-mode .driver-home-matched .driver-home-radar p,
html.rayt-night .driver-home-mode .driver-home-matched .driver-profile-rating,
html.rayt-night .driver-home-mode .driver-home-matched .driver-profile-rating-count{
  color:#aebfd3!important;
  opacity:1!important;
}
html.rayt-night .driver-home-mode .driver-home-matched .driver-home-metrics>div{
  background:#19283b!important;
  border-color:#324359!important;
  color:#f2f6fc!important;
}
html.rayt-night .driver-home-mode .driver-home-matched .driver-home-metrics span{
  color:#aebed0!important;
}
html.rayt-night .driver-home-mode .driver-home-matched .driver-home-metrics strong{
  color:#f4f7fc!important;
}
/* Perfil: evitar el bloque oscuro flotante sobre hoja blanca. */
html.rayt-night .driver-profile-mode .driver-profile.driver-profile-redesigned.driver-home-top,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-summary,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-heading,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-stats{
  background:#0e1827!important;
  background-image:none!important;
  color:#edf3fb!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-heading h2{
  color:#edf3fb!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions{
  background:#172335!important;
  border:1px solid #304258!important;
  border-radius:15px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions > button,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions > .driver-profile-card{
  background:#172335!important;
  background-image:none!important;
  color:#edf3fb!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-signout.driver-profile-card{
  background:#19283b!important;
  border-color:#304258!important;
  color:#f2f6fc!important;
}
/* No teñir portadas, fotos, ni el contenedor del mapa. */


/* RAYT V32 · Inicio oscuro sin franja superpuesta sobre la portada.
   La portada publicitaria debe verse completa y el bloque del nombre no debe
   pintar un fondo oscuro encima. */
html.rayt-night .driver-home-mode .driver-home-top.driver-home-matched{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
}
html.rayt-night .driver-home-mode .driver-home-matched .rayt-profile-cover-wrap,
html.rayt-night .driver-home-mode .driver-home-matched .driver-profile-overlap,
html.rayt-night .driver-home-mode .driver-home-matched .driver-profile-person{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
}
html.rayt-night .driver-home-mode .driver-home-matched .driver-profile-overlap{
  position:relative!important;
  z-index:8!important;
}
html.rayt-night .driver-home-mode .driver-home-matched .driver-profile-person h1,
html.rayt-night .driver-home-mode .driver-home-matched .driver-profile-rating{
  text-shadow:0 1px 2px rgba(0,0,0,.35)!important;
}


/* RAYT V33 · Deslizador de disponibilidad coherente en modo oscuro.
   El track apagado ya no debe verse gris claro; ahora usa una base oscura
   y mantiene acentos verdes cuando el conductor está en servicio. */
html.rayt-night .driver-home-mode .rayt-service-dock .rayt-service-hint{
  color:#93a6bc!important;
}
html.rayt-night .driver-home-mode .rayt-service-dock .rayt-service-slider{
  background:linear-gradient(145deg,#162233,#0f1928)!important;
  border:1px solid #304258!important;
  box-shadow:0 10px 26px rgba(2,8,18,.34), inset 0 1px 0 rgba(255,255,255,.04)!important;
}
html.rayt-night .driver-home-mode .rayt-service-dock .rayt-service-slider.is-online{
  background:linear-gradient(145deg,#163126,#10251c)!important;
  border-color:#24563d!important;
  box-shadow:0 10px 28px rgba(2,8,18,.38), 0 0 0 1px rgba(50,120,83,.08) inset!important;
}
html.rayt-night .driver-home-mode .rayt-service-dock .rayt-service-slider .rayt-service-label.off{
  color:#d9e5f2!important;
}
html.rayt-night .driver-home-mode .rayt-service-dock .rayt-service-slider .rayt-service-label.on{
  color:#d8f7e7!important;
}
html.rayt-night .driver-home-mode .rayt-service-dock .rayt-service-slider .rayt-service-track-glow{
  opacity:.18!important;
}
html.rayt-night .driver-home-mode .rayt-service-dock .rayt-service-slider .rayt-service-progress-fill{
  background:linear-gradient(100deg,#1f6545 0%,#1ab56f 55%,#31d48d 100%)!important;
  box-shadow:inset 0 1px 2px rgba(255,255,255,.18),0 0 18px rgba(25,190,118,.18)!important;
}
html.rayt-night .driver-home-mode .rayt-service-dock .rayt-service-slider .rayt-service-progress-spark{
  opacity:calc(var(--rayt-visual-progress) * .75)!important;
}
html.rayt-night .driver-home-mode .rayt-service-dock .rayt-service-slider .rayt-service-knob{
  background:#26384d!important;
  color:#eef4fb!important;
  box-shadow:0 4px 14px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.06)!important;
}
html.rayt-night .driver-home-mode .rayt-service-dock .rayt-service-slider.is-online .rayt-service-knob{
  background:#17a867!important;
  color:#ffffff!important;
  box-shadow:0 5px 18px rgba(10,178,103,.30), 0 2px 12px rgba(0,0,0,.26)!important;
}
html.rayt-night .driver-home-mode .rayt-service-dock .rayt-service-slider.is-online + .rayt-service-hint{
  color:#9ae6bc!important;
}


/* RAYT Conductor V34 — Tema oscuro específico para Mi actividad.
   Las reglas existentes de Activity emplean !important y por eso el tema
   genérico no alcanzaba sus paneles. Mantener exclusivamente bajo rayt-night. */
html.rayt-night .shell:has(> .driver-history-mode),
html.rayt-night .shell:has(> .driver-history-mode) > .driver-history-mode,
html.rayt-night .shell:has(> .driver-history-mode) .driver-history-mode > .driver-sheet {
  background:#0e1827!important;
  background-color:#0e1827!important;
  color:#edf3fb!important;
}
html.rayt-night .driver-history-mode .driver-history-header {
  background:#0e1827!important;
  color:#edf3fb!important;
}
html.rayt-night .driver-history-mode .driver-history-header h1,
html.rayt-night .driver-history-mode .driver-section-title {
  color:#f2f6fc!important;
}
html.rayt-night .driver-history-mode .driver-history-header p,
html.rayt-night .driver-history-mode .driver-history-month-label {
  color:#acbbcd!important;
}
html.rayt-night .driver-history-mode .driver-history-filter {
  background:#19283b!important;
  border-color:#33445a!important;
}
html.rayt-night .driver-history-mode .driver-history-filter button {
  background:transparent!important;
  color:#aebed0!important;
}
html.rayt-night .driver-history-mode .driver-history-filter button.selected {
  background:#34465f!important;
  color:#fff!important;
  box-shadow:0 2px 10px rgba(0,0,0,.18)!important;
}
html.rayt-night .driver-history-mode .driver-history-summary > div {
  background:#19283b!important;
  border-color:#314259!important;
  color:#edf3fb!important;
}
html.rayt-night .driver-history-mode .driver-history-summary small {
  color:#aabbd0!important;
}
html.rayt-night .driver-history-mode .driver-history-summary strong {
  color:#f4f7fc!important;
}
html.rayt-night .driver-history-mode .driver-history-count {
  background:#27384d!important;
  color:#d5e2f1!important;
}
html.rayt-night .driver-history-mode .driver-history-month-label select {
  background:#202f43!important;
  border-color:#41536b!important;
  color:#edf4ff!important;
}
html.rayt-night .shell:has(> .driver-history-mode) .driver-history-mode .driver-request {
  background:#172335!important;
  color:#eaf1fa!important;
  border-color:#314258!important;
  box-shadow:none!important;
}
html.rayt-night .driver-history-mode .driver-request > strong,
html.rayt-night .driver-history-mode .driver-history-trip-top > strong,
html.rayt-night .driver-history-mode .driver-fare strong {
  color:#f2f6fc!important;
}
html.rayt-night .driver-history-mode .driver-history-trip-top time {
  color:#a4b6ca!important;
}
html.rayt-night .driver-history-mode .driver-trip-rating {
  color:#ffd15b!important;
}
html.rayt-night .driver-history-mode .driver-route {
  background:#202f42!important;
  border-color:#384b62!important;
}
html.rayt-night .driver-history-mode .driver-route span {
  color:#dce6f3!important;
}
html.rayt-night .driver-history-mode .driver-fare {
  border-top-color:#384b62!important;
}
html.rayt-night .driver-history-mode .driver-fare .pill {
  background:#3d351d!important;
  color:#ffe0a0!important;
}
html.rayt-night .driver-history-mode .empty,
html.rayt-night .shell:has(> .driver-history-mode) .driver-history-mode .empty {
  background:#172335!important;
  border:1px solid #34455b!important;
  color:#aebed0!important;
}

/* V60 — contraste coherente del tema oscuro en tarjetas de solicitud.
   Las cards del panel de Inicio usan superficie clara; no aplicarles
   el panel azul genérico ni texto blanco sobre blanco. */
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card {
  background:#fff!important;
  color:#17202d!important;
  border-color:#e1e5eb!important;
  box-shadow:0 3px 11px rgba(0,0,0,.10)!important;
}
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card.quick-referred {
  background:#fffaf0!important;
  border-color:#e5bb49!important;
}
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-route {
  background:transparent!important;
  background-color:transparent!important;
  color:#18202a!important;
  border-left-color:#e4e7ed!important;
  box-shadow:none!important;
}
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-identity strong,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-stop strong,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-price strong {
  color:#152031!important;
  text-shadow:none!important;
}
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-stop small,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-request-locality,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-stats,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-price span {
  color:#526173!important;
}
/* La pantalla Tarifa aceptada mantiene direcciones oscuras sobre fondo claro. */
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-addresses {
  background:#f5f7fa!important;
  color:#17202d!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-addresses strong {
  color:#17202d!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-addresses small {
  color:#606c7e!important;
}


/* RAYT Conductor v100 — Ocultar temporalmente el acceso circular a RAYT BOT.
   No se altera el código de vinculación ni el resto de sus funciones. */
#rayt-bot-promo-button { display:none!important; }

/* V100 — Las cinco opciones del perfil mantienen EXACTAMENTE la misma
   geometría en tema claro y oscuro. El tema oscuro cambia solo la paleta. */
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions {
  flex:0 0 auto!important;
  margin:4px 16px 5px!important;
  padding:0!important;
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-top:1px solid #35465b!important;
  border-bottom:1px solid #35465b!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions > .driver-profile-card,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions > button {
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  min-height:61px!important;
  height:auto!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:12px 0!important;
  gap:12px!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#172335!important;
  background-image:none!important;
  color:#edf3fb!important;
  text-align:left!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions > .driver-profile-card + .driver-profile-card {
  border-top:1px solid #35465b!important;
}

/* V101 — Perfil nocturno: misma geometría que el perfil claro (v362).
   Solo cambia la paleta; no crea tarjetas ni contenedores adicionales. */
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-vehicle.driver-profile-card {
  flex:0 0 auto!important;
  min-height:0!important;
  height:auto!important;
  width:calc(100% - 32px)!important;
  margin:13px 16px 13px!important;
  padding:9px 0 15px!important;
  gap:12px!important;
  border:0!important;
  border-bottom:1px solid #35465b!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
html.rayt-night .driver-workspace.driver-profile-mode .driver-profile-redesigned.driver-home-top > .driver-profile-vehicle.driver-profile-card {
  margin-top:2px!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-vehicle-icon {
  width:42px!important;height:42px!important;min-width:42px!important;
  flex:0 0 42px!important;border-radius:13px!important;
  background:#263548!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-summary,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-heading,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-stats {
  background:transparent!important;background-image:none!important;
  border-radius:0!important;box-shadow:none!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-stats {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:0!important;
  padding:0 16px!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-card,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-card.wide {
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  justify-content:center!important;grid-column:auto!important;
  min-height:64px!important;height:auto!important;
  margin:0!important;padding:5px 9px!important;gap:0!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;background-image:none!important;
  box-shadow:none!important;overflow:visible!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-card:first-child {padding-left:0!important;}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-card + .driver-stat-card {
  border-left:1px solid #35465b!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions {
  flex:0 0 auto!important;
  margin:4px 16px 5px!important;
  padding:0!important;
  border:0!important;
  border-top:1px solid #35465b!important;
  border-bottom:1px solid #35465b!important;
  border-radius:0!important;
  background:transparent!important;background-image:none!important;
  box-shadow:none!important;overflow:visible!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .driver-profile-card,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-account-entry.driver-profile-card,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-documents-profile-entry.driver-profile-card,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-theme-entry.driver-profile-card,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions > button {
  display:flex!important;align-items:center!important;
  width:100%!important;min-height:61px!important;height:auto!important;
  flex:0 0 auto!important;
  margin:0!important;padding:12px 0!important;gap:12px!important;
  border:0!important;border-radius:0!important;
  box-shadow:none!important;background:transparent!important;
  background-image:none!important;color:#edf3fb!important;text-align:left!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .driver-profile-card + .driver-profile-card {
  border-top:1px solid #35465b!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .driver-profile-ref-icon,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-audio-icon,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-theme-icon,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-documents-icon,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .rayt-driver-profile-actions .rayt-driver-account-icon {
  flex:0 0 38px!important;min-width:38px!important;width:38px!important;height:38px!important;
  display:grid!important;place-items:center!important;
  border:0!important;border-radius:11px!important;
  background:#27364a!important;box-shadow:none!important;
  color:#c6d3e3!important;
}
/* Contraste de nombre de perfil, sin alterar posición ni tipografía. */
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-overlap .driver-profile-person h1 {
  color:#f3f6fc!important;
}

/* v102 — Resumen de hoy: geometría idéntica en claro y oscuro.
   Se cambia exclusivamente la paleta; no se crean tarjetas ni rellenos. */
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-summary {
  flex:0 0 auto!important;
  display:block!important;
  width:100%!important;
  min-height:0!important;
  margin:0 0 15px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-heading {
  display:flex!important;
  align-items:baseline!important;
  justify-content:space-between!important;
  padding:0 16px 10px!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-heading h2 {
  margin:0!important;
  font-size:13px!important;
  font-weight:800!important;
  letter-spacing:-.15px!important;
  color:#f1f5f9!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-stats {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:auto!important;
  gap:0!important;
  padding:0 16px!important;
  margin:0!important;
  min-height:0!important;
  align-items:stretch!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-card,
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-card.wide {
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  grid-column:auto!important;
  min-width:0!important;
  min-height:64px!important;
  height:auto!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:5px 9px!important;
  gap:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  overflow:visible!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-card:first-child {
  padding-left:0!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-card + .driver-stat-card {
  border-left:1px solid #35465b!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-copy {
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:6px!important;
  min-width:0!important;
  max-width:100%!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-copy small {
  font-size:9px!important;
  font-weight:650!important;
  line-height:1.2!important;
  letter-spacing:0!important;
  color:#aebbd0!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-copy strong {
  font-size:clamp(13px,3.8vw,18px)!important;
  line-height:1.13!important;
  letter-spacing:-.55px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#f3f6fc!important;
}
html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-copy span {
  font-size:9px!important;
  line-height:1.2!important;
  color:#aebbd0!important;
}
@media(max-width:355px){
  html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-profile-stats {padding:0 12px!important;}
  html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-card {padding:5px 6px!important;}
  html.rayt-night .driver-profile-mode .driver-profile-redesigned .driver-stat-copy strong {font-size:13px!important;}
}


/* v103 — Solicitud entrante y tarifa aceptada en modo oscuro.
   Solo contraste y superficies: sin cambiar geometría, animaciones, ni acciones. */
/* La solicitud mantiene la tarjeta clara que usa el modo blanco. */
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card {
  background-color:#ffffff!important;color:#17202d!important;
}
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card.quick-referred {
  background-color:#fffaf0!important;
}
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-offer-identity > strong,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-offer-price > strong,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-offer-stop strong {
  color:#131c29!important;text-shadow:none!important;
}
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-offer-route {
  background:transparent!important;background-color:transparent!important;
  border-left-color:#e5e7eb!important;color:#17202d!important;
}
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-offer-stop small,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-offer-stats,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-offer-price > span,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-request-locality {
  color:#586576!important;
}
/* El detalle de tarifa aceptada conserva los bloques claros y su lectura. */
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-addresses {
  background:#f5f7fa!important;color:#17202d!important;
  border-color:#e3e8ef!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-addresses > div + div {
  border-top-color:#e3e8ef!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-addresses strong {
  color:#17202d!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-addresses small {
  color:#5a6678!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-details {
  background:#faf9f6!important;border-color:#eeeae0!important;color:#171717!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-details strong {
  color:#171717!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-details small {
  color:#626977!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-track {
  background:#eae5d9!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-cancel {
  background:#ffffff!important;color:#333!important;border-color:#dddddd!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-status,
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-note,
html.rayt-night .driver-home-mode .driver-pending-offer > p {
  color:#afbbce!important;
}


/* v104 — Solicitud entrante y Tarifa aceptada: superficies OSCURAS en tema noche.
   Solo paleta; no altera tamaños, rutas, estados ni interacciones. */
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card.quick-referred {
  background:#172335!important;
  background-color:#172335!important;
  color:#edf3fa!important;
  border-color:#3b4c62!important;
  box-shadow:0 5px 18px rgba(0,0,0,.20)!important;
}
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card.quick-referred {
  border-color:#c49c35!important;
}
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-offer-route {
  background:#1d2b40!important;
  background-color:#1d2b40!important;
  color:#edf3fa!important;
  border-left-color:#3b4b61!important;
  box-shadow:none!important;
}
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-offer-identity > strong,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-offer-price > strong,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-offer-stop strong {
  color:#f5f7fc!important;
  text-shadow:none!important;
}
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-offer-stop small,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-offer-stats,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-offer-price > span,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-request-locality {
  color:#b7c5d8!important;
}
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-offer-counter,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-eta-quick {
  background:#26374d!important;
  color:#f1f5fc!important;
  border-color:#40526a!important;
}
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming .rayt-offer-card .rayt-offer-accept {
  background:#ffcc36!important;
  color:#151a21!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-addresses,
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-details {
  background:#1d2b40!important;
  background-color:#1d2b40!important;
  color:#edf3fa!important;
  border-color:#3b4c62!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-addresses > div + div {
  border-top-color:#3b4c62!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-addresses strong,
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-details strong {
  color:#f3f7ff!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-addresses small,
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-details small,
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-status,
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-note,
html.rayt-night .driver-home-mode .driver-pending-offer > p {
  color:#b8c6d9!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-track {
  background:#3b4a5e!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-cancel {
  background:#26374d!important;
  color:#eef4fb!important;
  border-color:#41536c!important;
}


/* v105 · Contraste de etiquetas y detalles de solicitud.
   Mantener el tema oscuro, sin modificar composición ni controles. */
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-stop small,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-stop small *,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-request-locality,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-stats,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-stats *,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-price > span {
  color:#ced9e8!important;
  opacity:1!important;
  -webkit-text-fill-color:currentColor!important;
}
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-stop strong,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-stop strong *,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-identity > strong,
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-price > strong {
  color:#ffffff!important;
  opacity:1!important;
  -webkit-text-fill-color:currentColor!important;
  text-shadow:none!important;
}
/* Evita que un color de texto heredado del modo claro oscurezca la ruta. */
html.rayt-night .driver-home-mode .driver-home-top .driver-incoming.has-incoming > .quick-request.rayt-offer-card .rayt-offer-route {
  color:#f5f8fd!important;
}
/* Los detalles del viaje aceptado siguen la misma escala de contraste. */
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-addresses,
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-details {
  color:#f5f8fd!important;
}
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-addresses small,
html.rayt-night .driver-home-mode .driver-pending-offer .driver-pending-details small {
  color:#cbd6e5!important;
}


/* v108 · Avatar a la izquierda, nombre y reputación apilados a su derecha.
   No altera la anchura de la tarjeta ni su lógica. */
.driver-home-mode .driver-incoming.has-incoming .quick-request.rayt-offer-card .rayt-offer-identity {
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  justify-content:flex-start!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
  width:100%!important;
}
.driver-home-mode .driver-incoming.has-incoming .quick-request.rayt-offer-card .rayt-offer-identity > .quick-client-avatar {
  flex:0 0 37px!important;
  width:37px!important;
  height:37px!important;
  min-width:37px!important;
  min-height:37px!important;
  margin:0!important;
}
.driver-home-mode .driver-incoming.has-incoming .quick-request.rayt-offer-card .rayt-offer-person {
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:3px!important;
  flex:1 1 0!important;
  min-width:0!important;
  max-width:100%!important;
}
.driver-home-mode .driver-incoming.has-incoming .quick-request.rayt-offer-card .rayt-offer-person > strong,
.driver-home-mode .driver-incoming.has-incoming .quick-request.rayt-offer-card .rayt-offer-person > .rayt-request-client-reputation {
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  text-align:left!important;
}
.driver-home-mode .driver-incoming.has-incoming .quick-request.rayt-offer-card .rayt-offer-person > strong {
  font-size:12px!important;
  line-height:1.15!important;
  font-weight:850!important;
}
.driver-home-mode .driver-incoming.has-incoming .quick-request.rayt-offer-card .rayt-offer-person > .rayt-request-client-reputation {
  font-size:9px!important;
  line-height:1.2!important;
}
html.rayt-night .driver-home-mode .driver-incoming.has-incoming .quick-request.rayt-offer-card .rayt-offer-person > strong {
  color:#fff!important;
}

/* v109 · Contraste exclusivamente del nombre del pasajero en la card de solicitud oscura. */
html.rayt-night .driver-home-mode .driver-incoming.has-incoming .quick-request.rayt-offer-card .rayt-offer-identity .rayt-offer-person > strong,
body.rayt-night .driver-home-mode .driver-incoming.has-incoming .quick-request.rayt-offer-card .rayt-offer-identity .rayt-offer-person > strong {
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  opacity:1!important;
  visibility:visible!important;
  text-shadow:none!important;
}


/* RAYT Conductor v126 — modo oscuro completo en viaje, chat y finalización.
   Exclusivamente apariencia: no cambia layouts, eventos, rutas ni lógica. */
html.rayt-night .driver-workspace.driver-active-mode,
html.rayt-night .driver-active-mode .driver-sheet,
html.rayt-night .driver-active-mode .active-trip-content{background:#0e1827!important;color:#edf3fa!important;}
html.rayt-night .driver-active-mode .active-trip-card{background:#172335!important;border-color:#34465e!important;box-shadow:0 8px 26px #0003!important;}
html.rayt-night .driver-active-mode .active-trip-client{background:linear-gradient(90deg,#202e42,#172335)!important;border-bottom-color:#34465e!important;color:#f3f6fc!important;}
html.rayt-night .driver-active-mode .active-trip-client-name strong,
html.rayt-night .driver-active-mode .active-trip-client strong,
html.rayt-night .driver-active-mode .active-trip-route strong,
html.rayt-night .driver-active-mode .active-trip-fare strong,
html.rayt-night .driver-active-mode .active-trip-heading h1{color:#f4f7ff!important;-webkit-text-fill-color:currentColor!important;}
html.rayt-night .driver-active-mode .active-trip-client-name small,
html.rayt-night .driver-active-mode .active-trip-route small,
html.rayt-night .driver-active-mode .active-trip-fare small{color:#b6c5d8!important;}
html.rayt-night .driver-active-mode .active-trip-route{background:#172335!important;border-color:#34465e!important;color:#f3f6fc!important;}
html.rayt-night .driver-active-mode .active-trip-fare{border-top-color:#34465e!important;}
html.rayt-night .driver-active-mode .active-trip-fare>span{background:#35402f!important;color:#ffda75!important;}
html.rayt-night .driver-active-mode .active-trip-chat{background:#27374c!important;border-color:#40516a!important;color:#f0f4fd!important;}
html.rayt-night .driver-active-mode .active-trip-chat svg{color:#eef3fc!important;}
html.rayt-night .driver-active-mode .active-trip-state{background:#26374b!important;border-color:#41526b!important;color:#ffdc79!important;}
html.rayt-night .driver-active-mode .driver-pin-box,
html.rayt-night .driver-active-mode .driver-wait{color:#f0f4fb!important;}
/* Chat de viaje, también cuando se monta fuera del workspace. */
html.rayt-night .rayt-chat-panel,
html.rayt-night .rayt-chat-messages{background:#101b2a!important;color:#edf3fa!important;}
html.rayt-night .rayt-chat-header,
html.rayt-night .rayt-chat-compose{background:#172335!important;border-color:#34465e!important;color:#f0f5fb!important;}
html.rayt-night .rayt-chat-back,
html.rayt-night .rayt-chat-person strong{color:#f3f7fc!important;}
html.rayt-night .rayt-chat-person small,
html.rayt-night .rayt-chat-empty{color:#b2c0d2!important;}
html.rayt-night .rayt-chat-empty span{background:#26374a!important;color:#ffd55a!important;}
html.rayt-night .rayt-chat-line.theirs .rayt-chat-bubble{background:#253449!important;border-color:#40516a!important;color:#f1f6fc!important;}
html.rayt-night .rayt-chat-line.mine .rayt-chat-bubble{background:#ffcf4d!important;border-color:#ffcf4d!important;color:#1c232e!important;}
html.rayt-night .rayt-chat-line.theirs .rayt-chat-bubble time{color:#b9c7d9!important;}
html.rayt-night .rayt-chat-line.mine .rayt-chat-bubble time{color:#594a2f!important;}
html.rayt-night .rayt-chat-compose input{background:#253449!important;border-color:#40516a!important;color:#f2f6fb!important;}
/* Cobro y calificación: conservar ilustración, jerarquía y amarillo RAYT. */
html.rayt-night .shell.finish-shell.driver-finish-shell,
html.rayt-night .driver-finish-shell .finish-screen.finish-minimal.driver-finish-screen{background:#0e1827!important;background-image:radial-gradient(ellipse at 50% 36%,#243042 0%,#0e1827 70%)!important;color:#f2f6fb!important;}
html.rayt-night .driver-finish-screen .finish-celebrate h1,
html.rayt-night .driver-finish-screen .finish-rating>strong,
html.rayt-night .driver-finish-screen .finish-driver strong,
html.rayt-night .driver-finish-screen .driver-finish-client-pill strong{color:#f3f7fc!important;-webkit-text-fill-color:currentColor!important;}
html.rayt-night .driver-finish-screen .finish-celebrate p,
html.rayt-night .driver-finish-screen .finish-driver small,
html.rayt-night .driver-finish-screen .driver-finish-client-pill span{color:#b5c3d5!important;-webkit-text-fill-color:currentColor!important;}
html.rayt-night .driver-finish-screen .finish-driver,
html.rayt-night .driver-finish-screen .finish-rating,
html.rayt-night .driver-finish-screen .driver-finish-client-pill{background:#172335!important;border-color:#34465e!important;box-shadow:0 10px 24px #0003!important;color:#f2f6fb!important;}
html.rayt-night .driver-finish-screen .driver-finish-fare{background:linear-gradient(145deg,#172230,#263349)!important;border-color:#40516a!important;box-shadow:0 12px 25px #0003!important;}
html.rayt-night .driver-finish-screen .driver-finish-fare small{color:#b8c6d9!important;}
html.rayt-night .driver-finish-screen .driver-finish-fare strong{color:#ffcf45!important;}
html.rayt-night .driver-finish-screen .driver-finish-fare span{color:#f0f5fa!important;}
html.rayt-night .driver-finish-screen .finish-footer{background:transparent!important;}
html.rayt-night .driver-finish-screen .rayt-slide-finish-hint{color:#b4c1d2!important;}
html.rayt-night .driver-finish-screen .rayt-rating-dismiss{color:#d6e2ef!important;}
/* Las estrellas activas, el botón amarillo y los recursos gráficos conservan su aspecto. */


/* RAYT Conductor v127 — Dark mode de los elementos REALES del viaje activo.
   No modifica geometría, gestos, estados ni mapa: únicamente superficies y contraste.
   La v126 usaba .active-trip-client/.active-trip-route, mientras app.js renderiza
   .driver-passenger-premium/.driver-card-route-item. */
html.rayt-night body .driver-workspace.driver-active-mode:has(.active-trip-card.driver-trip-status-asignado),
html.rayt-night body .driver-workspace.driver-active-mode:has(.active-trip-card.driver-trip-status-asignado) > .driver-sheet,
html.rayt-night body .driver-workspace.driver-active-mode > .driver-sheet,
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-content {
  background:#0e1827!important;
  background-color:#0e1827!important;
  color:#ecf2fa!important;
}
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-card,
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-card .driver-passenger-premium {
  background:#172335!important;
  background-color:#172335!important;
  border-color:#34465e!important;
  color:#edf3fb!important;
  box-shadow:0 8px 22px rgba(0,0,0,.19)!important;
}
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-card .driver-passenger-main,
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-card .driver-passenger-info-row,
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-card .driver-card-route {
  background:transparent!important;
  background-color:transparent!important;
  border-color:#34465e!important;
  color:#edf3fb!important;
}
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-card .driver-passenger-identity .active-trip-client-name strong,
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-card .driver-passenger-fare strong,
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-card .driver-card-route-item strong {
  color:#f4f7fc!important;
  -webkit-text-fill-color:#f4f7fc!important;
  text-shadow:none!important;
}
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-card .driver-passenger-identity .active-trip-client-name small,
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-card .driver-passenger-fare small,
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-card .driver-card-route-item small {
  color:#adbed3!important;
  -webkit-text-fill-color:#adbed3!important;
}
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-card .driver-card-route-item,
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-card .driver-passenger-origin,
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-card .driver-passenger-payment {
  background:#202f43!important;
  background-color:#202f43!important;
  border-color:#3c4c63!important;
  color:#f2f5fc!important;
}
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-card .driver-card-route-item > i.black {
  background:#dbe4ef!important;
}
html.rayt-night body .driver-workspace.driver-active-mode .active-trip-card .driver-header-message {
  background:#27374b!important;
  background-color:#27374b!important;
  color:#f6f8fd!important;
  -webkit-text-fill-color:#f6f8fd!important;
  border-color:#40516a!important;
}
/* La capa original del chat era blanca aun cuando los mensajes ya eran oscuros. */
html.rayt-night body.rayt-chat-active::after,
html.rayt-night body #rayt-chat-modal,
html.rayt-night body #rayt-chat-modal .rayt-chat-backdrop {
  background:#0e1827!important;
  background-color:#0e1827!important;
}
html.rayt-night body #rayt-chat-modal .rayt-chat-panel,
html.rayt-night body #rayt-chat-modal .rayt-chat-messages {
  background:#101b2a!important;
  background-color:#101b2a!important;
  color:#f2f5fb!important;
}
html.rayt-night body #rayt-chat-modal .rayt-chat-header,
html.rayt-night body #rayt-chat-modal .rayt-chat-compose {
  background:#172335!important;
  background-color:#172335!important;
  border-color:#34465e!important;
  color:#f0f5fb!important;
}
html.rayt-night body #rayt-chat-modal .rayt-chat-empty,
html.rayt-night body #rayt-chat-modal .rayt-chat-empty strong {
  color:#c6d3e4!important;
  -webkit-text-fill-color:#c6d3e4!important;
}
html.rayt-night body #rayt-chat-modal .rayt-chat-empty span {
  background:#26374a!important;
  color:#ffd65c!important;
  -webkit-text-fill-color:#ffd65c!important;
}


/* RAYT Conductor v128 — parche puntual de continuidad cromática, viaje asignado.
   Supera los overrides blancos anteriores de styles.css sin cambiar geometría. */
html.rayt-night body #app .driver-workspace.driver-active-mode:has(.active-trip-card.driver-trip-status-asignado),
html.rayt-night body #app .driver-workspace.driver-active-mode:has(.active-trip-card.driver-trip-status-asignado) > .driver-sheet,
html.rayt-night body #app .driver-workspace.driver-active-mode:has(.active-trip-card.driver-trip-status-asignado) > .rayt-driver-cancel-slot-v91,
html.rayt-night body #app .driver-workspace.driver-active-mode:has(.active-trip-card.driver-trip-status-asignado) .active-trip-content {
  background:#0e1827!important;
  background-color:#0e1827!important;
  background-image:none!important;
}
html.rayt-night body #app .driver-workspace.driver-active-mode:has(.active-trip-card.driver-trip-status-asignado) > .rayt-driver-cancel-slot-v91 {
  border:0!important;
  box-shadow:none!important;
  filter:none!important;
  opacity:1!important;
}
/* Botón de navegación de Google Maps: el icono multicolor se conserva. */
html.rayt-night body #app .driver-workspace.driver-active-mode .driver-action-navigate.rayt-maps-origin-button,
html.rayt-night body #app .driver-workspace.driver-active-mode .active-trip-card .driver-card-actions .driver-action-navigate.rayt-maps-origin-button {
  background:#202f43!important;
  background-color:#202f43!important;
  background-image:none!important;
  border-color:#42516a!important;
  color:#f3f6fc!important;
  box-shadow:0 2px 8px rgba(0,0,0,.18)!important;
}
html.rayt-night body #app .driver-workspace.driver-active-mode .rayt-maps-origin-button .rayt-maps-icon,
html.rayt-night body #app .driver-workspace.driver-active-mode .active-trip-card .driver-card-actions .driver-action-navigate.rayt-maps-origin-button .rayt-maps-icon {
  background:#26374a!important;
  background-color:#26374a!important;
  border-color:#42516a!important;
}
html.rayt-night body #app .driver-workspace.driver-active-mode .rayt-maps-origin-button .rayt-maps-label strong {
  color:#f3f6fc!important;
  -webkit-text-fill-color:#f3f6fc!important;
}
html.rayt-night body #app .driver-workspace.driver-active-mode .rayt-maps-origin-button .rayt-maps-label em {
  color:#b3c2d5!important;
  -webkit-text-fill-color:#b3c2d5!important;
}
html.rayt-night body #app .driver-workspace.driver-active-mode .rayt-maps-origin-button .rayt-maps-external {
  color:#b9c8da!important;
}


/* RAYT Conductor v129 — barra inferior oscura en todas las pantallas.
   Únicamente colores: mantiene tamaños, posiciones y área táctil. */
html.rayt-night body #app .shell:has(.driver-workspace) .driver-bottom-nav,
html.rayt-night body #app .shell:has(.driver-workspace) .driver-workspace > .driver-bottom-nav,
html.rayt-night body #app .driver-workspace.driver-active-mode > .driver-bottom-nav {
  background:#111c2b!important;
  background-color:#111c2b!important;
  background-image:none!important;
  border-top-color:#304057!important;
  box-shadow:0 -5px 18px rgba(0,0,0,.24)!important;
  color:#c4d0e0!important;
}
html.rayt-night body #app .driver-workspace .driver-bottom-nav > button:not(.active),
html.rayt-night body #app .driver-workspace .driver-bottom-nav > button:not(.active) .nav-symbol{
  color:#96a8be!important;
  -webkit-text-fill-color:#96a8be!important;
}
html.rayt-night body #app .driver-workspace .driver-bottom-nav > button.active{
  color:#ffcf42!important;
  -webkit-text-fill-color:#ffcf42!important;
  background:transparent!important;
}
html.rayt-night body #app .driver-workspace .driver-bottom-nav > button.active .nav-symbol{
  background:#ffcf42!important;
  color:#142033!important;
  -webkit-text-fill-color:#142033!important;
}
/* Mapa nocturno: SOLO las teselas raster. Los pines, controles, textos
   superpuestos y líneas de ruta mantienen sus propios colores y eventos. */
html.rayt-night body #app .driver-workspace .leaflet-container,
html.rayt-night body #app .driver-workspace .driver-map .map,
html.rayt-night body #rayt-location-modal .leaflet-container{
  background-color:#192739!important;
}
html.rayt-night body #app .driver-workspace .leaflet-container .leaflet-tile-pane,
html.rayt-night body #rayt-location-modal .leaflet-container .leaflet-tile-pane {
  filter:invert(1) hue-rotate(180deg) brightness(.79) contrast(.92) saturate(.8)!important;
  -webkit-filter:invert(1) hue-rotate(180deg) brightness(.79) contrast(.92) saturate(.8)!important;
}
/* Algunos mapas principales aplican un filtro a toda la capa .map.
   Lo anulamos solo en noche para no volver a filtrar pines/rutas. */
html.rayt-night body #app .driver-workspace .driver-map .map,
html.rayt-night body #app .driver-workspace .rayt-inline-trip-map,
html.rayt-night body #app .driver-workspace .driver-pending-map{
  filter:none!important;
  opacity:1!important;
}
/* La ruta negra original no contrastaría contra teselas nocturnas. */
html.rayt-night body #app .driver-workspace .leaflet-overlay-pane svg path[stroke="#202020"]{
  stroke:#f9d04a!important;
}
html.rayt-night body #app .driver-workspace .leaflet-control-attribution{
  background:rgba(18,29,43,.88)!important;
  color:#b5c5d7!important;
}
html.rayt-night body #app .driver-workspace .leaflet-control-attribution a{
  color:#c8d8ee!important;
}


/* RAYT Conductor v130 — cartografía nocturna suave y señalización contrastante.
   Solo presentación; no altera Leaflet, rutas, puntos ni comportamiento. */
html.rayt-night body #app .driver-workspace .leaflet-container .leaflet-tile-pane,
html.rayt-night body #rayt-location-modal .leaflet-container .leaflet-tile-pane {
  /* Evita el negativo casi negro anterior; conserva calles y etiquetas legibles. */
  filter:grayscale(.52) brightness(.73) contrast(.97) saturate(.65)!important;
  -webkit-filter:grayscale(.52) brightness(.73) contrast(.97) saturate(.65)!important;
}
html.rayt-night body #app .driver-workspace .leaflet-container,
html.rayt-night body #rayt-location-modal .leaflet-container {
  background-color:#65717e!important;
}
/* La geometría de OSRM sigue intacta: solo cambia el trazo de la ruta. */
html.rayt-night body #app .driver-workspace .leaflet-overlay-pane svg path.leaflet-interactive[stroke="#202020"],
html.rayt-night body #app .driver-workspace .leaflet-overlay-pane svg path.leaflet-interactive[stroke="#17191d"],
html.rayt-night body #app .driver-workspace .leaflet-overlay-pane svg path[stroke="#202020"],
html.rayt-night body #app .driver-workspace .leaflet-overlay-pane svg path[stroke="#17191d"] {
  stroke:#1769b4!important;
  stroke-width:6px!important;
  stroke-opacity:1!important;
  filter:drop-shadow(0 1px 1px rgba(255,255,255,.78))!important;
}
/* Origen amarillo con aro azul y destino turquesa con aro blanco. */
html.rayt-night body #app .driver-workspace .leaflet-overlay-pane svg path[fill="#f9c72c"],
html.rayt-night body #app .driver-workspace .leaflet-overlay-pane svg path[fill="#f9bd24"] {
  fill:#ffd23f!important;
  stroke:#173a60!important;
  stroke-width:3px!important;
}
html.rayt-night body #app .driver-workspace .leaflet-overlay-pane svg path[fill="#111"],
html.rayt-night body #app .driver-workspace .leaflet-overlay-pane svg path[fill="#151a20"] {
  fill:#087b96!important;
  stroke:#f7fbff!important;
  stroke-width:3px!important;
}

/* v131: gris oscuro intermedio; conservar ruta y pines contrastantes de v130. */

/* Missing documents: same footprint as existing thumbnails. */
#rayt-driver-documents-modal .rayt-driver-document-add{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;font:inherit;font-weight:700;color:#725200;}
#rayt-driver-documents-modal .rayt-driver-document-plus{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#ffce45;color:#182332;font-size:28px;font-weight:400;line-height:1;}
#rayt-driver-documents-modal .rayt-driver-document-add small{font-size:10px;font-weight:400;color:inherit;}
.rayt-night #rayt-driver-documents-modal .rayt-driver-document-add{color:#ffd34e!important;}
#rayt-driver-documents-modal .rayt-driver-document-actions{display:flex;gap:5px;}
#rayt-driver-documents-modal .rayt-driver-document-actions button{flex:1;min-width:0;padding:8px 3px;border:1px solid #8b96a2;border-radius:8px;background:transparent;color:inherit;font-size:11px;cursor:pointer;}
#rayt-driver-documents-modal .rayt-driver-document-actions button:last-child{background:#ffce45;border-color:#ffce45;color:#182332;font-weight:700;}
#rayt-driver-documents-modal .rayt-driver-document-actions button:disabled{opacity:.5;cursor:default;}
#rayt-driver-documents-modal .rayt-driver-document-upload-status{font-size:11px;overflow-wrap:anywhere;}
#rayt-driver-documents-modal .rayt-driver-document-upload-status[hidden]{display:none!important;}

/* Profile document source chooser and explicit private-image viewer. */
#rayt-driver-documents-modal .rayt-driver-document-sources{display:flex;flex-direction:column;justify-content:center;gap:5px;}
#rayt-driver-documents-modal .rayt-driver-document-sources button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:34px;border:1px solid #d6dce5;border-radius:8px;background:#fff;color:#263242;font-size:12px;font-weight:650;cursor:pointer;padding:4px;}
#rayt-driver-documents-modal .rayt-driver-document-sources svg{width:18px;height:18px;flex:none;}
#rayt-driver-documents-modal .rayt-driver-document-sources .rayt-driver-document-source-cancel{border:0;background:transparent;color:inherit;min-height:24px;font-weight:400;}
.rayt-night #rayt-driver-documents-modal .rayt-driver-document-sources button:not(.rayt-driver-document-source-cancel){background:#26384b;color:#ffd34e;border-color:#45566a;}
#rayt-driver-documents-modal button.rayt-driver-document-thumb{position:relative;}
#rayt-driver-documents-modal .rayt-driver-document-enlarge{position:absolute;right:6px;bottom:6px;display:flex;align-items:center;gap:5px;padding:6px 8px;border-radius:8px;background:rgba(8,17,29,.86);color:#fff;font-size:10px;font-weight:650;pointer-events:none;}
#rayt-driver-documents-modal .rayt-driver-document-enlarge svg{width:14px;height:14px;}

/* Minimal independent document editing control. */
#rayt-driver-documents-modal .rayt-driver-document-edit-wrap{position:relative;min-width:0;width:100%;}
#rayt-driver-documents-modal .rayt-driver-document-edit-wrap>.rayt-driver-document-thumb{width:100%;display:flex;}
#rayt-driver-documents-modal .rayt-driver-document-edit{position:absolute;top:8px;right:8px;z-index:2;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid rgba(255,255,255,.38);border-radius:50%;background:rgba(16,29,45,.88);color:#fff;box-shadow:0 2px 8px #0003;cursor:pointer;transition:transform .16s ease,background .16s ease;}
#rayt-driver-documents-modal .rayt-driver-document-edit svg{width:18px;height:18px;pointer-events:none;}
#rayt-driver-documents-modal .rayt-driver-document-edit:active{transform:scale(.92);background:#26384b;}
#rayt-driver-documents-modal .rayt-driver-document-edit:focus-visible{outline:2px solid #ffce45;outline-offset:2px;}
@media(prefers-reduced-motion:reduce){#rayt-driver-documents-modal .rayt-driver-document-edit{transition:none;}}

/* v135: light document controls and minimal viewer close. */
#rayt-driver-document-lightbox .rayt-driver-document-lightbox-close{
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  font-size:30px;font-weight:300;line-height:1;
}
#rayt-driver-document-lightbox .rayt-driver-document-lightbox-close:focus-visible{outline:2px solid #fff;outline-offset:2px;}
#rayt-driver-documents-modal .rayt-driver-document-edit,
#rayt-driver-documents-modal .rayt-driver-document-enlarge{
  background:rgba(250,252,255,.96)!important;color:#243247!important;
  -webkit-text-fill-color:#243247!important;border:1px solid rgba(255,255,255,.8)!important;
  box-shadow:0 2px 8px rgba(0,0,0,.14);
}
#rayt-driver-documents-modal .rayt-driver-document-edit:active{background:#e5ebf3!important;}

/* Mapa de inicio: sustituye solo la ilustración del radar, conserva estado y controles. */
.driver-radar-art.rayt-home-map-slot{display:block!important;isolation:isolate;min-height:0;}
.driver-radar-art.rayt-home-map-slot > :not(.rayt-home-map){display:none!important;}
.rayt-home-map{position:absolute;inset:0;overflow:hidden;border-radius:20px;background:#e7eceb;box-shadow:0 3px 14px #172b4315;text-align:left;}
.rayt-home-map-canvas{width:100%;height:100%;}
.rayt-home-map-status{position:absolute;top:10px;left:10px;max-width:calc(100% - 65px);padding:6px 10px;background:#fff;color:#26364a;border-radius:12px;font-size:11px;font-weight:650;box-shadow:0 2px 8px #0002;pointer-events:none;}
.rayt-home-map-status:empty{display:none;}
.rayt-home-map-center{position:absolute!important;right:10px;top:10px;width:39px;height:39px;min-height:0!important;padding:9px!important;display:grid!important;place-items:center;border:0!important;border-radius:50%!important;background:#fff!important;color:#162b43!important;box-shadow:0 2px 10px #0002!important;}
.rayt-home-map-center svg{width:22px;height:22px;}
html.rayt-night .rayt-home-map{background:#202c3b;}html.rayt-night .rayt-home-map-status,html.rayt-night .rayt-home-map-center{background:#243347!important;color:#f5f7fa!important;}

/* Aislar los mosaicos de Google Maps de los estilos del radar anterior. */
.driver-home-mode .driver-radar-art.rayt-home-map-slot .rayt-home-map-canvas img{
 width:auto; height:auto; max-width:none; max-height:none;
 position:static; z-index:auto; object-fit:fill; filter:none;
 animation:none; opacity:1;
}

/* RAYT home taxi: fixed geographic anchor, independent animated artwork. */
.driver-radar-art .rayt-home-map-canvas .rayt-home-taxi-anchor{position:absolute;width:46px;height:57px;transform:translate(-50%,-50%);pointer-events:none;z-index:10;overflow:visible;}
.rayt-home-taxi-float{position:absolute;inset:0;animation:rayt-home-taxi-hover 2.8s ease-in-out infinite;will-change:transform;}
.rayt-home-taxi-heading{width:100%;height:100%;transform-origin:50% 50%;}
.driver-radar-art .rayt-home-map-canvas .rayt-home-taxi-heading svg{display:block!important;width:46px!important;height:57px!important;max-width:none!important;max-height:none!important;position:static!important;transform:none!important;animation:none!important;filter:none!important;}
.rayt-home-taxi-halo{position:absolute;left:50%;top:50%;width:38px;height:38px;margin:-19px 0 0 -19px;border-radius:50%;border:1.5px solid #e5af1870;background:#fcc43218;animation:rayt-home-taxi-pulse 3.6s ease-out infinite;box-sizing:border-box;}
@keyframes rayt-home-taxi-hover{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes rayt-home-taxi-pulse{0%{transform:scale(.65);opacity:.65}75%{opacity:.12}100%{transform:scale(1.6);opacity:0}}
@media(prefers-reduced-motion:reduce){.rayt-home-taxi-float,.rayt-home-taxi-halo{animation:none!important}.rayt-home-taxi-halo{opacity:.2}}

/* v139: full-bleed home map, isolated from the ride and profile screens. */
html body #app .driver-home-mode .driver-sheet.rayt-home-immersive{isolation:isolate;}
html body #app .driver-home-mode .driver-sheet.rayt-home-immersive > .rayt-home-map{position:absolute;inset:var(--rayt-map-top,80px) 0 0;z-index:0;border-radius:0;box-shadow:none;overflow:hidden;}
.rayt-home-map[hidden]{display:none!important;}
html body #app .driver-home-mode .rayt-home-immersive .driver-home-top.driver-home-matched{background:transparent!important;background-image:none!important;pointer-events:none;overflow:visible!important;}
html body #app .driver-home-mode .rayt-home-immersive .rayt-profile-cover-wrap{pointer-events:auto;z-index:2!important;}
html body #app .driver-home-mode .rayt-home-immersive .driver-profile-overlap{pointer-events:none;background:transparent!important;background-image:none!important;}
html body #app .driver-home-mode .rayt-home-immersive .driver-profile-overlap::before{content:'';position:absolute;inset:30px -12px -12px;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.62) 60%,transparent);}
html body #app .driver-home-mode .rayt-home-immersive .driver-profile-overlap button,html body #app .driver-home-mode .rayt-home-immersive .rayt-online-widget{pointer-events:auto;}
html body #app .driver-home-mode .rayt-home-immersive .driver-profile-person{background:transparent!important;border:0!important;}
html body #app .driver-home-mode .rayt-home-immersive .driver-home-radar{position:absolute!important;top:auto!important;bottom:var(--rayt-map-status-bottom,170px)!important;left:50%!important;right:auto!important;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);height:auto!important;min-height:0!important;margin:0!important;padding:10px 17px!important;gap:4px;border-radius:18px;background:rgba(255,255,255,.94)!important;box-shadow:0 4px 16px #16202b16!important;z-index:5;pointer-events:none;}
html body #app .driver-home-mode .rayt-home-immersive .driver-home-radar .driver-radar-art{display:none!important;}
html body #app .driver-home-mode .rayt-home-immersive .driver-home-radar h2,html body #app .driver-home-mode .rayt-home-immersive .driver-home-radar p{margin:0!important;}
html body #app .driver-home-mode .rayt-home-immersive .driver-home-radar h2{font-size:16px!important;line-height:1.2;}
html body #app .driver-home-mode .rayt-home-immersive .driver-home-radar p{font-size:11px!important;line-height:1.3;}
html body #app .driver-home-mode .rayt-home-immersive .driver-radar-dots{margin:2px auto 0!important;}
html body #app .driver-home-mode .rayt-home-immersive .driver-home-metrics>div{background:rgba(255,255,255,.94)!important;border-color:#ffffffb0!important;box-shadow:0 3px 12px #17202b12!important;}
html body #app .driver-home-mode .rayt-home-immersive .rayt-service-dock{pointer-events:auto;}
.rayt-home-immersive .rayt-home-map-status,.rayt-home-immersive .rayt-home-map-center{top:var(--rayt-map-controls,74px);}
/* Marker artwork keeps its original dimensions after moving outside the radar. */
.rayt-home-map-canvas .rayt-home-taxi-anchor{position:absolute;width:46px;height:57px;transform:translate(-50%,-50%);pointer-events:none;z-index:10;overflow:visible;}
.rayt-home-map-canvas .rayt-home-taxi-heading svg{display:block!important;width:46px!important;height:57px!important;max-width:none!important;max-height:none!important;}
html.rayt-night body #app .driver-home-mode .rayt-home-immersive .driver-profile-overlap::before{background:linear-gradient(180deg,rgba(14,24,39,.95),rgba(14,24,39,.65) 60%,transparent);}
html.rayt-night body #app .driver-home-mode .rayt-home-immersive .driver-home-radar,html.rayt-night body #app .driver-home-mode .rayt-home-immersive .driver-home-metrics>div{background:rgba(25,40,59,.94)!important;border-color:#34465a!important;}
@media(min-width:761px){html body #app .driver-home-mode .rayt-home-immersive .driver-home-metrics{position:fixed!important;bottom:calc(158px + env(safe-area-inset-bottom,0px))!important;left:18px;right:18px;max-width:530px;margin:auto!important;z-index:40;}}

/* v141: estado de búsqueda sin tarjeta ni fondo, solo texto y puntos. */
html body #app .driver-home-mode .rayt-home-immersive .driver-home-radar,
html.rayt-night body #app .driver-home-mode .rayt-home-immersive .driver-home-radar{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html body #app .driver-home-mode .rayt-home-immersive .driver-home-radar p{color:#263548!important;text-shadow:0 1px 3px #fff,0 0 6px #fff;font-weight:600;}
html.rayt-night body #app .driver-home-mode .rayt-home-immersive .driver-home-radar p{color:#edf3fb!important;text-shadow:0 1px 4px #0e1827,0 0 6px #0e1827;}

/* v142: estado e instrucción dentro del mismo deslizador. */
.rayt-service-slider .rayt-service-label.off,.rayt-service-slider .rayt-service-label.on{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;line-height:1.1;max-height:none;}
.rayt-service-slider .rayt-service-state{font-size:clamp(14px,3.8vw,17px);font-weight:800;letter-spacing:-.025em;}
.rayt-service-slider .rayt-service-instruction{font-size:clamp(10px,2.9vw,12px);font-weight:600;letter-spacing:0;white-space:normal;text-align:center;}

/* v143: availability search animation, map stays mounted. */
html body #app .driver-home-mode .driver-home-radar.rayt-status-in-slider{display:none!important;}
.rayt-service-slider .rayt-service-search-dots{display:inline-flex;align-items:center;gap:4px;margin-left:6px;vertical-align:middle;}
.rayt-service-search-dots i{display:block;width:4px;height:4px;background:currentColor;border-radius:50%;opacity:.4;}
.rayt-service-slider.is-online:not(.is-dragging):not(.is-settling) .rayt-service-search-dots i{animation:rayt-service-dot 1.6s ease-in-out infinite;}
.rayt-service-slider.is-online .rayt-service-search-dots i:nth-child(2){animation-delay:.2s!important;}
.rayt-service-slider.is-online .rayt-service-search-dots i:nth-child(3){animation-delay:.4s!important;}
.rayt-service-slider.is-online:not(.is-dragging):not(.is-settling)::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.38) 50%,transparent 80%);animation:rayt-service-scan 3.2s ease-in-out infinite;}
@keyframes rayt-service-dot{0%,80%,100%{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1.2)}}
@keyframes rayt-service-scan{0%{transform:translateX(-110%)}75%,100%{transform:translateX(110%)}}
@media(prefers-reduced-motion:reduce){.rayt-service-slider.is-online::after,.rayt-service-slider.is-online .rayt-service-search-dots i{animation:none!important;}.rayt-service-slider.is-online::after{display:none;}}
