/* Service Desk shared Templates page.
   Service Desk email templates use a safe rich-text message editor; Campaign Manager owns full HTML email design. */
#templatesView .service-email-workspace{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);
  gap:14px;
  align-items:start;
}
#templatesView .service-email-editor-pane,
#templatesView .service-email-live-pane{
  min-width:0;
}
#templatesView .service-email-rich-shell{
  min-width:0;
}
#templatesView .service-email-rich-toolbar.campaign-rich-toolbar{
  display:flex!important;
  flex-wrap:wrap;
  align-items:center;
  gap:2px;
  padding:6px 8px;
  background:#fff;
  border-bottom:1px solid #e4eaf0;
}
#templatesView .service-email-rich-toolbar button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
  height:30px;
  padding:0 7px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#454f5b;
  font:inherit;
  font-size:13.5px;
  font-weight:600;
  cursor:pointer;
}
#templatesView .service-email-rich-toolbar select{
  width:auto;
  min-width:74px;
  height:30px;
  border:1px solid #d8e1e8;
  border-radius:6px;
  background:#fff;
  color:#33495d;
  padding:0 24px 0 8px;
  font:inherit;
  font-size:12px;
}
#templatesView .service-email-rich-toolbar button:hover,
#templatesView .service-email-rich-toolbar select:hover{
  background:#f6f9fb;
}
#templatesView .service-email-rich-toolbar .crt-div{
  width:1px;
  height:20px;
  margin:0 3px;
  background:#e0e6ec;
}
#templatesView .service-email-rich-editor{
  width:100%;
  min-height:360px;
  height:420px;
  box-sizing:border-box;
  overflow:auto;
  padding:14px;
  border:0;
  outline:0;
  background:#fff;
  color:#26394d;
  font:14px/1.55 Arial,Helvetica,sans-serif;
}
#templatesView .service-email-rich-editor:focus{
  box-shadow:inset 0 0 0 2px #1676d2;
}
#templatesView .service-email-rich-editor:empty:before{
  content:attr(data-placeholder);
  color:#98a5b2;
  pointer-events:none;
}
#templatesView .service-email-template-note{
  margin:0;
  padding:10px 12px;
  border:1px solid #dbe4ed;
  border-radius:8px;
  background:#f8fbfd;
  color:#66798b;
  font-size:11px;
  line-height:1.45;
}
@media(max-width:1350px){
  #templatesView .service-email-workspace{
    grid-template-columns:1fr;
  }
  #templatesView .service-email-live-pane{
    position:static;
  }
}