/* XMARTS LAB · V112 · Solicitud de acceso a escritorio + integrantes de equipo.
   Presentación exclusivamente: se mantienen handlers de aceptar/rechazar/cerrar,
   datos de Odoo, presencia, navegación y LiveKit.
   Diseño plano y consistente con la paleta oficial Xmarts. */

html body.xm-mkt-ui #nudgeNotifications:has(> .vo-desk-modern){
  box-sizing:border-box!important;
  width:min(450px,calc(100vw - 20px))!important;
  max-height:calc(100dvh - 85px)!important;
  top:75px!important;
  align-items:stretch!important;
  flex-direction:column!important;
  overflow-y:auto!important;
  padding:2px 2px 7px!important;
  gap:9px!important;
  pointer-events:none!important;
  scrollbar-width:thin;
}
html body.xm-mkt-ui #nudgeNotifications .toast.nudge-toast.desk-access-toast.vo-desk-modern{
  --desk-bg:var(--glass-solid,#1D2021);
  --desk-tile:#2B3030;
  --desk-hover:#353B38;
  --desk-edge:#474F4B;
  box-sizing:border-box!important;
  position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  transform:none!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:16px!important;
  display:flex!important;flex-direction:column!important;gap:14px!important;
  background:var(--desk-bg)!important;background-image:none!important;
  color:var(--fg,#F1F4EF)!important;
  border:1px solid var(--desk-edge)!important;border-radius:17px!important;
  box-shadow:0 10px 30px rgba(0,0,0,.22)!important;
  text-align:left!important;
  font-family:var(--font,Manrope,system-ui,sans-serif)!important;
  text-shadow:none!important;backdrop-filter:none!important;
  cursor:default!important;pointer-events:auto!important;
}
html body.xm-mkt-ui #nudgeNotifications .vo-desk-modern .vo-desk-header{
  display:flex!important;align-items:flex-start!important;gap:11px!important;
  box-sizing:border-box!important;min-width:0!important;
}
html body.xm-mkt-ui #nudgeNotifications .vo-desk-modern .vo-desk-title-copy{
  display:flex!important;flex-direction:column!important;gap:5px!important;
  flex:1 1 auto!important;min-width:0!important;
}
html body.xm-mkt-ui #nudgeNotifications .vo-desk-modern .vo-desk-title-copy>strong{
  display:block!important;margin:0!important;
  font:800 0.9375rem/1.35 var(--font,Manrope,system-ui,sans-serif)!important;
  color:var(--fg,#F1F4EF)!important;
  overflow-wrap:anywhere!important;
}
html body.xm-mkt-ui #nudgeNotifications .vo-desk-modern .vo-desk-title-copy>small{
  display:block!important;margin:0!important;
  font:500 0.75rem/1.3 var(--font,Manrope,system-ui,sans-serif)!important;
  color:var(--muted,#A2AAA4)!important;opacity:1!important;
}
html body.xm-mkt-ui #nudgeNotifications .vo-desk-modern .vo-desk-head-symbol{
  flex:0 0 36px!important;
  display:grid!important;place-items:center!important;
  width:36px!important;height:36px!important;
  color:var(--accent,#93C362)!important;
  background:var(--desk-tile)!important;border-radius:11px!important;
}
html body.xm-mkt-ui #nudgeNotifications .vo-desk-modern svg{
  display:block!important;flex:none!important;
  width:18px!important;height:18px!important;
  fill:none!important;stroke:currentColor!important;
  stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;
}
html body.xm-mkt-ui #nudgeNotifications .vo-desk-modern .vo-desk-head-symbol svg{
  width:20px!important;height:20px!important;
}
html body.xm-mkt-ui #nudgeNotifications .vo-desk-modern .toast-actions{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  width:100%!important;
  margin:0!important;padding:0!important;
  align-items:stretch!important;justify-content:stretch!important;
}
html body.xm-mkt-ui #nudgeNotifications .vo-desk-modern .toast-actions>button{
  box-sizing:border-box!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:7px!important;
  width:100%!important;min-width:0!important;
  min-height:40px!important;height:auto!important;
  margin:0!important;padding:10px!important;
  border:1px solid var(--desk-edge)!important;
  border-radius:10px!important;
  background:var(--desk-tile)!important;background-image:none!important;
  box-shadow:none!important;text-shadow:none!important;
  color:var(--fg,#F1F4EF)!important;
  font:750 0.75rem/1.25 var(--font,Manrope,system-ui,sans-serif)!important;
  white-space:nowrap!important;overflow:visible!important;
  cursor:pointer!important;
}
html body.xm-mkt-ui #nudgeNotifications .vo-desk-modern .toast-actions>button[data-desk-decision="yes"]{
  border-color:var(--accent,#93C362)!important;
  background:var(--vo-light-card,#303D32)!important;
  color:var(--vo-light-primary,#F1F4EF)!important;
}
html body.xm-mkt-ui #nudgeNotifications .vo-desk-modern .toast-actions>button[data-desk-decision="close"]{
  grid-column:1/-1!important;
  min-height:34px!important;
  background:transparent!important;
  color:var(--muted,#A2AAA4)!important;
}
html body.xm-mkt-ui #nudgeNotifications .vo-desk-modern .toast-actions>button:hover:not(:disabled){
  background:var(--desk-hover)!important;
  color:var(--fg,#F1F4EF)!important;
}
html body.xm-mkt-ui #nudgeNotifications .vo-desk-modern .toast-actions>button:focus-visible{
  outline:2px solid var(--accent,#93C362)!important;
  outline-offset:2px!important;
}
html body.xm-mkt-ui #nudgeNotifications .vo-desk-modern .toast-actions>button:disabled{
  opacity:var(--vo-light-disabled-opacity,.45)!important;cursor:not-allowed!important;
}

/* Team presence — misma superficie carbón que los demás paneles */
html body.xm-mkt-ui #teamPresenceModal{
  box-sizing:border-box!important;
  padding:14px!important;
  backdrop-filter:blur(3px)!important;
}
html body.xm-mkt-ui #teamPresenceModal .team-presence-box{
  --team-bg:var(--glass-solid,#1D2021);
  --team-tile:#2B3030;
  --team-raised:#343A38;
  --team-hover:#3C433F;
  --team-edge:#474F4B;
  box-sizing:border-box!important;
  display:flex!important;flex-direction:column!important;
  width:min(670px,calc(100vw - 24px))!important;
  min-width:0!important;
  max-height:calc(100dvh - 28px)!important;
  overflow:hidden!important;
  padding:20px!important;
  border:1px solid var(--team-edge)!important;border-radius:18px!important;
  background:var(--team-bg)!important;background-image:none!important;
  color:var(--fg,#F1F4EF)!important;
  box-shadow:0 14px 35px rgba(0,0,0,.25)!important;
  backdrop-filter:none!important;
  font-family:var(--font,Manrope,system-ui,sans-serif)!important;
}
html body.xm-mkt-ui #teamPresenceModal .team-presence-box .profile-head{
  display:flex!important;align-items:center!important;
  margin:0!important;padding:0 0 13px!important;
  border-bottom:1px solid var(--team-edge)!important;
  gap:11px!important;
  flex:none!important;
}
html body.xm-mkt-ui #teamPresenceModal .vo-team-head-icon{
  flex:0 0 38px!important;
  display:grid!important;place-items:center!important;
  width:38px!important;height:38px!important;
  border-radius:11px!important;
  background:var(--team-tile)!important;
  color:var(--fg,#F1F4EF)!important;
}
html body.xm-mkt-ui #teamPresenceModal .vo-team-head-icon svg,
html body.xm-mkt-ui #teamPresenceModal .vo-team-close-icon{
  display:block!important;
  width:19px!important;height:19px!important;
  flex:none!important;
  stroke:currentColor!important;fill:none!important;
  stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;
}
html body.xm-mkt-ui #teamPresenceModal #teamPresenceTitle{
  font:800 1.1875rem/1.2 var(--font,Manrope,system-ui,sans-serif)!important;
  color:var(--fg,#F1F4EF)!important;
  margin:0!important;overflow-wrap:anywhere!important;
}
html body.xm-mkt-ui #teamPresenceModal #teamPresenceSummary{
  margin-top:5px!important;
  color:var(--muted,#A2AAA4)!important;
  font:500 0.75rem/1.35 var(--font,Manrope,system-ui,sans-serif)!important;
}
html body.xm-mkt-ui #teamPresenceModal .team-presence-columns{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  flex:1 1 auto!important;
  min-height:0!important;
  margin:14px 0 0!important;
}
html body.xm-mkt-ui #teamPresenceModal .team-presence-group{
  box-sizing:border-box!important;
  display:flex!important;flex-direction:column!important;
  min-width:0!important;min-height:140px!important;max-height:100%!important;
  margin:0!important;padding:12px!important;
  background:var(--team-tile)!important;background-image:none!important;
  border:1px solid var(--team-edge)!important;border-radius:12px!important;
  box-shadow:none!important;
  color:var(--fg,#F1F4EF)!important;
  overflow:hidden!important;
}
html body.xm-mkt-ui #teamPresenceModal .team-presence-group h3{
  display:flex!important;align-items:center!important;gap:9px!important;
  min-height:20px!important;
  margin:0 0 10px!important;
  font:800 0.8125rem/1.25 var(--font,Manrope,system-ui,sans-serif)!important;
  color:var(--fg,#F1F4EF)!important;
}
html body.xm-mkt-ui #teamPresenceModal .vo-team-heading-dot{
  flex:0 0 11px!important;
  display:inline-block!important;
  width:11px!important;height:11px!important;
  border-radius:50%!important;
  background:var(--st-off,#6B726D)!important;
}
html body.xm-mkt-ui #teamPresenceModal .vo-team-heading-dot.is-present{
  background:var(--st-free,#4CC76A)!important;
}
html body.xm-mkt-ui #teamPresenceModal .vo-team-heading-count{
  margin-left:auto!important;min-width:21px!important;
  padding:3px 7px!important;
  border:1px solid var(--team-edge)!important;border-radius:9px!important;
  background:var(--team-raised)!important;
  text-align:center!important;
  color:var(--fg,#F1F4EF)!important;
  font:750 0.6875rem/1.15 var(--font,Manrope,system-ui,sans-serif)!important;
}
html body.xm-mkt-ui #teamPresenceModal .team-presence-list{
  display:flex!important;flex-direction:column!important;
  gap:6px!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-height:0!important;
  max-height:50vh!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  scrollbar-width:thin!important;
  scrollbar-color:var(--team-edge) transparent!important;
}
html body.xm-mkt-ui #teamPresenceModal .team-presence-person{
  display:flex!important;
  align-items:flex-start!important;
  box-sizing:border-box!important;
  gap:10px!important;
  padding:10px!important;
  min-height:55px!important;
  width:100%!important;
  border:1px solid transparent!important;
  border-radius:9px!important;
  background:var(--team-raised)!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--fg,#F1F4EF)!important;
  font:600 0.75rem/1.35 var(--font,Manrope,system-ui,sans-serif)!important;
}
html body.xm-mkt-ui #teamPresenceModal .team-presence-person>span:last-child{
  display:block!important;flex:1!important;
  min-width:0!important;overflow-wrap:anywhere!important;
}
html body.xm-mkt-ui #teamPresenceModal .team-presence-person b{
  font-size:0.75rem!important;font-weight:800!important;
  color:var(--fg,#F1F4EF)!important;
}
html body.xm-mkt-ui #teamPresenceModal .team-presence-person small,
html body.xm-mkt-ui #teamPresenceModal .team-presence-person .odoo-v55-teamoffline{
  font-size:0.6875rem!important;line-height:1.4!important;
  color:var(--muted,#A2AAA4)!important;
}
html body.xm-mkt-ui #teamPresenceModal .team-presence-person .odoo-v55-teambadge{
  margin:3px 0 0!important;
}
html body.xm-mkt-ui #teamPresenceModal .team-presence-dot{
  display:block!important;
  flex:0 0 9px!important;
  width:9px!important;height:9px!important;
  margin-top:5px!important;
  border:0!important;border-radius:50%!important;
  background:var(--st-off,#6B726D)!important;
}
html body.xm-mkt-ui #teamPresenceModal .team-presence-dot.present{
  background:var(--st-free,#4CC76A)!important;
}
html body.xm-mkt-ui #teamPresenceModal .team-presence-dot.absent{
  background:var(--st-off,#6B726D)!important;
}
html body.xm-mkt-ui #teamPresenceModal .team-presence-empty{
  font:500 0.75rem/1.4 var(--font,Manrope,system-ui,sans-serif)!important;
  color:var(--muted,#A2AAA4)!important;
  padding:12px 4px!important;
}
html body.xm-mkt-ui #teamPresenceModal .team-presence-close-row{
  display:flex!important;justify-content:flex-end!important;
  flex:none!important;
  margin:14px 0 0!important;padding:12px 0 0!important;
  border-top:1px solid var(--team-edge)!important;
}
html body.xm-mkt-ui #teamPresenceModal #teamPresenceClose{
  display:inline-flex!important;align-items:center!important;
  justify-content:center!important;gap:7px!important;
  min-height:36px!important;
  padding:8px 14px!important;
  border:1px solid var(--team-edge)!important;border-radius:10px!important;
  background:var(--team-tile)!important;
  background-image:none!important;
  color:var(--fg,#F1F4EF)!important;
  box-shadow:none!important;
  font:750 0.75rem/1.3 var(--font,Manrope,system-ui,sans-serif)!important;
  cursor:pointer!important;
}
html body.xm-mkt-ui #teamPresenceModal #teamPresenceClose:hover{
  background:var(--team-hover)!important;
}
html body.xm-mkt-ui #teamPresenceModal #teamPresenceClose:focus-visible{
  outline:2px solid var(--accent,#93C362)!important;
  outline-offset:2px!important;
}

/* El tema claro comparte semántica y geometría; evita superficies oscuras. */
html[data-theme="light"] body.xm-mkt-ui #teamPresenceModal .team-presence-box{
  --team-tile:#F2F4F1;
  --team-raised:#E7EBE6;
  --team-hover:#DCE2DA;
  --team-edge:#CBD3CA;
}
html[data-theme="light"] body.xm-mkt-ui #nudgeNotifications .vo-desk-modern{
  --desk-tile:#F2F4F1!important;
  --desk-hover:#E7EBE6!important;
  --desk-edge:#CBD3CA!important;
}
html[data-theme="light"] body.xm-mkt-ui #nudgeNotifications .vo-desk-modern .toast-actions>button[data-desk-decision="yes"]{
  background:var(--vo-light-card,#DFEBD8)!important;
  color:var(--vo-light-primary,#17201A)!important;
}
@media(max-width:620px){
  html body.xm-mkt-ui #teamPresenceModal{padding:6px!important;}
  html body.xm-mkt-ui #teamPresenceModal .team-presence-box{
    width:calc(100vw - 12px)!important;
    max-height:calc(100dvh - 12px)!important;
    padding:13px!important;
  }
  html body.xm-mkt-ui #teamPresenceModal .team-presence-columns{
    grid-template-columns:minmax(0,1fr)!important;
    overflow-y:auto!important;
  }
  html body.xm-mkt-ui #teamPresenceModal .team-presence-group{
    min-height:95px!important;max-height:none!important;
  }
  html body.xm-mkt-ui #teamPresenceModal .team-presence-list{
    max-height:33vh!important;
  }
}
@media(max-width:340px){
  html body.xm-mkt-ui #nudgeNotifications .vo-desk-modern .toast-actions{
    grid-template-columns:minmax(0,1fr)!important;
  }
}

/* LAB · lugares en los equipos y reuniones activas, sin afectar controles existentes */
html body.xm-mkt-ui #teamPresenceModal .team-presence-person .vo-team-live-location{
 display:block!important;margin-top:5px!important;color:var(--accent,#93C362)!important;
 font-size:0.6875rem!important;font-weight:700!important;line-height:1.4!important;
 white-space:normal!important;overflow-wrap:anywhere!important;
}
html body #contextRail.context-rail{
 width:min(342px,calc(100vw - 20px))!important;
 height:min(485px,calc(100dvh - 90px))!important;min-height:220px!important;
 background:var(--vo-light-surface,#1D2021)!important;background-image:none!important;
 border:1px solid #474F4B!important;box-shadow:none!important;color:var(--vo-light-primary,#F1F4EF)!important;
}
html body #contextRail .rail-head{border-bottom:1px solid #474F4B!important}
html body #contextRail .rail-head b{color:var(--vo-light-primary,#F1F4EF)!important}
html body #contextRail .rail-head span{color:var(--vo-light-secondary,#A2AAA4)!important}
html body #contextRail .floating-rail-body{
 height:calc(100% - 50px)!important;box-sizing:border-box!important;
 overflow-y:auto!important;overflow-x:hidden!important;padding:10px 2px!important;
}
html body #contextRail #near,html body #contextRail #nearCard,
html body #contextRail #roomBanner{display:none!important}
html body #contextRail .vo-active-summary{
 font-size:0.6875rem;font-weight:750;color:var(--vo-light-secondary,#A2AAA4);padding:1px 2px 11px;
}
html body #contextRail .vo-active-list{display:flex;flex-direction:column;gap:9px;min-width:0}
html body #contextRail .vo-active-card{
 border:1px solid #474F4B;background:var(--vo-light-selection,#2B3030);border-radius:12px;padding:11px 12px;
 min-width:0;color:var(--vo-light-primary,#F1F4EF);
}
html body #contextRail .vo-active-heading{display:flex;align-items:center;gap:7px;min-width:0}
html body #contextRail .vo-active-heading i{
 flex:none;width:8px;height:8px;border-radius:50%;background:var(--st-call,#4F9FF2)
}
html body #contextRail .vo-active-heading b{
 min-width:0;flex:1;font-size:0.75rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden
}
html body #contextRail .vo-active-heading em{
 border:1px solid #474F4B;border-radius:8px;padding:2px 7px;font-size:0.625rem;
 font-style:normal;background:var(--vo-light-selection,#343A38);color:var(--vo-light-primary,#E7ECE8)
}
html body #contextRail .vo-active-card small{
 display:block;font-size:0.625rem;color:var(--vo-light-secondary,#A2AAA4);margin:5px 0 9px 15px
}
html body #contextRail .vo-active-people{display:flex;flex-wrap:wrap;gap:5px}
html body #contextRail .vo-active-people span{
 background:var(--vo-light-selection,#343A38);border:1px solid #474F4B;border-radius:7px;
 padding:4px 7px;font-size:0.625rem;color:var(--vo-light-primary,#F1F4EF);max-width:100%;
 text-overflow:ellipsis;overflow:hidden;white-space:nowrap
}
html body #contextRail .vo-active-empty{
 text-align:center;padding:22px 13px;border:1px dashed #474F4B;border-radius:12px;
 background:var(--vo-light-selection,#2B3030);color:var(--vo-light-primary,#A2AAA4);font-size:0.6875rem;line-height:1.5
}
html body #contextRail #privateRoomControls.show{
 margin-top:12px!important;background:var(--vo-light-surface,#2B3030)!important;
 border:1px solid #474F4B!important;color:var(--vo-light-primary,#F1F4EF)!important
}
html[data-theme="light"] body.xm-mkt-ui #teamPresenceModal .team-presence-person .vo-team-live-location{color:var(--vo-light-primary,#376941)!important}
html[data-theme="light"] body #contextRail.context-rail{background:var(--vo-light-surface,#FBFCFA)!important;color:var(--vo-light-primary,#17201A)!important;border-color:var(--vo-light-border,#CBD3CA)!important}
html[data-theme="light"] body #contextRail .rail-head b,
html[data-theme="light"] body #contextRail .vo-active-heading b{color:var(--vo-light-primary,#17201A)!important}
html[data-theme="light"] body #contextRail .vo-active-card,
html[data-theme="light"] body #contextRail .vo-active-empty{background:var(--vo-light-selection,#F2F4F1)!important;border-color:var(--vo-light-outline,#CBD3CA)!important}
html[data-theme="light"] body #contextRail .vo-active-people span,
html[data-theme="light"] body #contextRail .vo-active-heading em{
 background:var(--vo-light-selection,#E7EBE6)!important;color:var(--vo-light-primary,#17201A)!important;border-color:var(--vo-light-outline,#CBD3CA)!important
}
@media(max-width:900px){
 html body #contextRail.context-rail{
  left:auto!important;right:8px!important;top:115px!important;bottom:auto!important;
  width:min(354px,calc(100vw - 16px))!important;height:min(60dvh,485px)!important
 }
}
