/* TheaCRM v2.8.625 – mobile email detail */
.thea-mobile-email-more{position:relative}
.thea-mobile-email-more>[data-thea-email-more-toggle]{
  display:inline-flex;align-items:center;justify-content:center;gap:.35rem;
  min-height:2.75rem;user-select:none
}
.thea-mobile-email-more.is-open>[data-thea-email-more-toggle]{
  border-color:#a9c8b1;color:#1f6937;background:#eff8f1
}
.thea-mobile-email-more__menu[hidden]{display:none!important}
.thea-mobile-email-more__menu{
  position:absolute;top:calc(100% + .4rem);right:0;z-index:1060;
  display:grid;width:min(19rem,calc(100vw - 1rem));overflow:hidden;
  border:1px solid #d9e5dc;border-radius:.9rem;
  background:var(--bs-body-bg,#fff);box-shadow:0 15px 38px rgba(18,48,27,.2)
}
.thea-mobile-email-more__menu a,.thea-mobile-email-more__menu button{
  display:grid;grid-template-columns:1.35rem minmax(0,1fr);align-items:center;
  gap:.55rem;width:100%;min-height:2.85rem;padding:.72rem .8rem;border:0;
  border-bottom:1px solid #edf1ee;color:#294936;
  background:var(--bs-body-bg,#fff);font-size:.78rem;text-align:left;text-decoration:none
}
.thea-mobile-email-more__menu>:last-child{border-bottom:0}
.thea-mobile-email-more__menu a:active,.thea-mobile-email-more__menu button:active{
  background:#eff7f1
}
@media(max-width:767.98px){
  .thea-mobile-email-detail{
    width:100%;
    padding-left:max(.4rem,env(safe-area-inset-left,0px))!important;
    padding-right:max(.4rem,env(safe-area-inset-right,0px))!important
  }
  .thea-mobile-email-message{width:100%;margin-left:0;margin-right:0}
  .thea-mobile-email-context,.thea-mobile-email-attachments,.thea-mobile-email-body{
    margin-left:.35rem;margin-right:.35rem;padding-left:.7rem;padding-right:.7rem
  }
  .thea-mobile-email-body iframe,.thea-mobile-email-body pre{max-width:100%}
}
@media(max-width:360px){
  .thea-mobile-email-message__actions--clean{grid-template-columns:1fr}
  .thea-mobile-email-more>[data-thea-email-more-toggle]{width:100%}
  .thea-mobile-email-more__menu{
    right:auto;left:0;width:min(19rem,calc(100vw - .8rem))
  }
}
