/* Dunsira · revisión UX móvil/web · 20 octubre 2026
   Ajustes visuales únicamente: no modifica permisos ni lógica de usuario. */

/* Navegación mensual: tres controles con el mismo tamaño, siempre en una fila. */
.calendar-nav-controls{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  width:192px;
  max-width:100%;
  flex:0 0 auto;
  align-items:stretch;
}
.calendar-nav-controls>.btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:40px!important;
  padding:8px 10px!important;
  border-radius:11px!important;
  font-size:14px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
@media(max-width:840px){
  .calendar-toolbar{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:9px!important;
    width:100%!important;
  }
  .calendar-nav-controls{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    width:100%!important;
    min-width:0!important;
    gap:8px!important;
  }
  .calendar-toolbar select{width:100%!important;max-width:100%!important}
}

/* Actividad: reservar siempre una columna al icono, otra al texto
   y otra a la fecha cuando haya espacio. Ningún elemento puede
   superponerse al siguiente aunque haya nombres largos. */
.reference-news .reference-activity-row{
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr) auto!important;
  grid-template-areas:"activity-icon activity-copy activity-date"!important;
  column-gap:11px!important;
  row-gap:6px!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.reference-news .reference-activity-row>.activity-icon{
  grid-area:activity-icon!important;
  display:grid!important;
  place-items:center!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  flex:0 0 40px!important;
  margin:0!important;
  padding:0!important;
}
.reference-news .reference-activity-row>.reference-activity-copy{
  grid-area:activity-copy!important;
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  margin:0!important;
}
.reference-news .reference-activity-row>.meta{
  grid-area:activity-date!important;
  width:auto!important;
  max-width:100%!important;
  margin:0!important;
  min-width:0!important;
  justify-self:end!important;
  white-space:nowrap!important;
}
.reference-news .reference-activity-row .row-title,
.reference-news .reference-activity-row .row-sub{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  white-space:normal!important;
  line-height:1.35!important;
}
@media(max-width:840px){
  .reference-news .reference-activity-row{
    grid-template-columns:40px minmax(0,1fr)!important;
    grid-template-areas:
      "activity-icon activity-copy"
      ". activity-date"!important;
    align-items:start!important;
  }
  .reference-news .reference-activity-row>.meta{
    margin-top:1px!important;
    font-size:11px!important;
  }
}
@media(max-width:360px){
  .reference-news .reference-activity-row{grid-template-columns:36px minmax(0,1fr)!important;column-gap:9px!important}
  .reference-news .reference-activity-row>.activity-icon{
    width:36px!important;height:36px!important;
    min-width:36px!important;max-width:36px!important;
  }
}

/* Avatares: logos más visibles e iniciales ópticamente centradas. */
.profile-avatar{
  padding:0!important;
  align-items:center!important;
  justify-items:center!important;
  text-align:center!important;
  line-height:1!important;
  box-sizing:border-box!important;
}
.profile-avatar>span{
  display:flex!important;
  width:100%!important;
  height:100%!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  padding:0!important;
  line-height:1!important;
  font-size:clamp(12px, 1.2em, 20px)!important;
  letter-spacing:0!important;
  text-indent:0!important;
  transform:none!important;
}
.profile-avatar>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
  margin:0!important;
  padding:0!important;
}
.profile-avatar.card>img{
  transform:scale(1.24)!important;
  transform-origin:center!important;
}
.profile-avatar.card{display:inline-grid!important;align-items:center!important;justify-items:center!important;overflow:hidden!important}
#topAvatar,.avatar{align-items:center!important;justify-items:center!important;text-align:center!important;line-height:1!important}
#topAvatar img{width:100%!important;height:100%!important;display:block!important;object-fit:cover!important;border-radius:50%!important}

@media(prefers-reduced-motion:reduce){.calendar-nav-controls>.btn{transition:none!important}}


/* Ayuda de producto: explicaciones por espacio, accesibles en tablet y móvil. */
.dunsira-help{color:#253750;line-height:1.58}
.dunsira-help-intro{margin:0 0 14px;font-size:14px;line-height:1.6}
.dunsira-help-lead{padding:13px 15px;border:1px solid #dce4ec;background:#f5f7fa;border-radius:14px;font-size:13px;margin-bottom:14px}
.dunsira-help-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.dunsira-help-title{font-size:12px;font-weight:800;color:#526475;text-transform:uppercase;letter-spacing:.06em;margin:18px 0 10px}
.dunsira-help-detail{border:1px solid #dce4ec;border-radius:13px;background:#fff;margin-bottom:9px;overflow:hidden}
.dunsira-help-detail[open]{background:#fcfdfe}
.dunsira-help-detail summary{cursor:pointer;display:list-item;padding:12px 15px;font-size:14px;font-weight:750;color:#011b32;line-height:1.4}
.dunsira-help-detail summary:focus-visible{outline:2px solid #567699;outline-offset:-3px}
.dunsira-help-detail-body{border-top:1px solid #e8edf2;padding:11px 15px 13px;font-size:13px;line-height:1.55}
.dunsira-help-detail-body p{margin:0 0 10px}
.dunsira-help-detail-body p:last-child{margin-bottom:0}
@media(max-width:520px){
  .dunsira-help-actions{flex-direction:column;align-items:stretch}
  .dunsira-help-actions>.btn{width:100%}
  .dunsira-help-detail summary{padding:12px}
  .dunsira-help-detail-body{padding:11px 12px}
}
