/* NEXO · Capa final tras los estilos del Lienzo: prioridad de geometría. */
/* ===== NEXO v28.5.4 · cambios visuales consolidados ===== */
/* Ícono fijo del lateral, sin marca, sin centrado intermitente */
.caser-desk .desk-mark,
.app .caser-desk .desk-mark,
.app.desk-hover-open .caser-desk .desk-mark{
  align-self:flex-start!important;justify-self:start!important;
  margin:0 0 14px 1px!important;
  width:46px!important;min-width:46px!important;height:46px!important;
  display:grid!important;place-items:center!important;transform:none!important;
}
.caser-desk .desk-side-copy{display:none!important}

/* Avatar individual a la derecha + único grupo de compañeros a su izquierda */
.app .hero-shell #presenceCluster.presence-cluster{display:flex!important;align-items:center!important;justify-content:center!important;min-width:52px;flex:none}
.nexo-presence-button{position:relative;display:grid!important;place-items:center!important;min-height:42px!important;width:83px;height:42px;padding:0 8px!important;background:rgba(23,43,76,.46)!important;border:1px solid rgba(128,166,219,.23)!important;border-radius:15px!important;cursor:pointer}
.nexo-presence-stack{display:flex;align-items:center;justify-content:center;padding-left:8px}
.nexo-presence-slot{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;border:2px solid #142440;margin-left:-9px;overflow:hidden;background:linear-gradient(140deg,#355071,#283e60);font-size:20px;color:#95aecd}
.nexo-presence-slot.is-placeholder:nth-child(2){background:linear-gradient(140deg,#344869,#203655)}
.nexo-presence-slot.is-placeholder:nth-child(3){background:linear-gradient(140deg,#2b405f,#172c49)}
.nexo-presence-slot img{width:100%;height:100%;object-fit:cover}
.nexo-presence-dot{position:absolute;width:7px;height:7px;border-radius:50%;right:5px;bottom:6px;border:1px solid #101c34;background:#65dca8;box-shadow:0 0 7px rgba(105,235,176,.32)}
.nexo-presence-button:hover,.nexo-presence-button:focus-visible{border-color:rgba(151,206,240,.58)!important;background:rgba(50,78,119,.53)!important}
.caser-team-dialog{overflow:hidden!important}
.caser-team-dialog .caser-profile-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px}
.caser-team-dialog .caser-profile-head button{flex:none;width:36px!important;height:36px!important;display:grid!important;place-items:center!important;align-self:center!important;margin:0!important;padding:0!important;font-size:21px!important;line-height:1!important;transform:none!important}
.caser-team-dialog .caser-profile-head h2{margin:4px 0!important}
.caser-team-dialog .caser-team-list{max-height:min(50vh,390px);min-height:0;overflow:auto;padding:0 1px 8px}
.caser-team-dialog .caser-profile-help{text-align:center!important;margin:14px 0!important;padding:0 12px!important}
.nexo-team-tabs{display:flex;justify-content:center;gap:8px;padding:0 12px;margin-top:16px}
.nexo-team-tabs button{min-height:36px;border-radius:12px;padding:7px 16px;font-size:12px}
.nexo-team-tabs button.selected{background:rgba(91,129,201,.24);border-color:rgba(151,198,241,.43)}
.caser-team-person{padding:11px!important;border-radius:12px;gap:10px!important}
.caser-team-person .caser-team-state{white-space:nowrap}

/* Leyenda en la esquina superior izquierda del lienzo. Estados del dock NO la desplazan. */
.app.lienzo-active #lienzoView .mb-legend-trigger,
.app.lienzo-active.context-dock-open #lienzoView .mb-legend-trigger,
.app.lienzo-active.context-dock-closed #lienzoView .mb-legend-trigger{
  top:14px!important;left:14px!important;width:50px!important;height:50px!important;
  display:grid!important;place-items:center!important;transform:none!important;padding:0!important;border-radius:13px!important;
}
.app.lienzo-active #lienzoView .mb-legend-trigger svg{justify-self:center!important;align-self:center!important;margin:0!important;transform:none!important}
.app.lienzo-active #lienzoView .mb-sidebar,
.app.lienzo-active #lienzoView .mb-shell.mb-legend-open .mb-sidebar,
.app.lienzo-active.context-dock-closed #lienzoView .mb-sidebar{
  top:72px!important;left:14px!important;bottom:auto!important;
  height:auto!important;max-height:calc(100% - 88px)!important;
  min-height:0!important;overflow:hidden!important;
  width:min(360px,calc(100% - 28px))!important;
  padding:15px 15px 17px!important;
  border-radius:13px!important;
  gap:12px!important;
}
.app.lienzo-active #lienzoView .mb-sidebar .mb-legend-title{
  min-height:38px!important;padding:0 0 12px!important;
  display:flex!important;align-items:center!important;
}
.app.lienzo-active #lienzoView .mb-sidebar .mb-legend-title button{height:34px!important;width:34px!important;display:grid!important;place-items:center!important;line-height:1!important;padding:0!important}
.app.lienzo-active #lienzoView .mb-sidebar .mb-side-section-title{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0!important;padding:10px 2px 3px!important;min-height:37px!important}
.app.lienzo-active #lienzoView .mb-sidebar .mb-centers{
  min-height:0!important;flex:0 1 auto!important;max-height:min(56vh,450px)!important;
  overflow:auto!important;display:flex!important;flex-direction:column!important;gap:8px!important;
  margin:0!important;padding:3px 1px 4px!important;
}
.app.lienzo-active #lienzoView .mb-sidebar .mb-center-entry{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  width:100%!important;min-height:54px!important;max-height:none!important;
  padding:11px 13px!important;gap:10px!important;margin:0!important;
  border-radius:10px!important;box-sizing:border-box;
}
.app.lienzo-active #lienzoView .mb-sidebar .mb-center-entry::before{display:grid;place-items:center;width:20px;min-width:20px;line-height:1}
.app.lienzo-active #lienzoView .mb-sidebar .mb-center-entry span{flex:1;min-width:0;display:block;margin:0!important;padding:0!important;align-self:center;line-height:1.4!important}
.app.lienzo-active #lienzoView .mb-sidebar .mb-bottom-note{margin:0!important;padding-top:12px!important;min-height:27px!important;flex:0 0 auto!important}
@media(max-width:680px){
  .app.lienzo-active #lienzoView .mb-sidebar,
  .app.lienzo-active #lienzoView .mb-shell.mb-legend-open .mb-sidebar{left:11px!important;top:68px!important;width:min(330px,calc(100% - 22px))!important}
}

/* Calendario: 6 filas completas, igual aire a ambos lados y margen inferior sobre Discord */
.app #calendarView:not(.hidden){padding:18px 22px calc(104px + env(safe-area-inset-bottom,0px))!important;overflow:hidden!important;gap:14px!important}
.app #calendarView .calendar-toolbar{height:54px!important;flex:0 0 54px!important;margin:0 auto!important;gap:22px!important}
.app #calendarView .calendar{
  flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;
  width:100%!important;overflow:hidden!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  grid-template-rows:36px repeat(6,minmax(0,1fr))!important;
  margin:0 auto!important;padding:1px!important;border-radius:17px!important;
}
.app #calendarView .calendar-weekday{height:36px!important;min-height:0!important;padding:6px!important}
.app #calendarView .calendar-day{min-height:0!important;overflow:hidden!important;padding:6px 7px 7px!important}
.app #calendarView .calendar-card{line-height:1.25!important;min-height:0!important;max-height:36px!important;overflow:hidden!important;margin:1px 0!important;padding:5px 6px!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
@media(max-height:650px){.app #calendarView:not(.hidden){padding-bottom:88px!important}.app #calendarView .calendar-toolbar{height:42px!important;flex-basis:42px!important}}
@media(max-width:750px){.app #calendarView:not(.hidden){padding:11px 9px 95px!important}.app #calendarView .calendar-day{padding:3px!important}.app #calendarView .calendar-card{font-size:9px!important}}

/* Admin: jerarquía entre periodos de consumo */
.nexo-monthly-heading{margin:24px 0 12px!important;padding-top:18px!important;border-top:1px solid rgba(145,171,220,.15)}
.nexo-monthly-heading h3{font-size:14px!important}
#adminMonthlyQuotaBars{margin-bottom:10px!important}
.admin-quota-card small{display:block;margin-top:7px;color:#90a9ca;font-size:10px}
