/* Home — compact, current Esteja appointment detail modal. */
#modal:has(.appointment-detail-panel){
  width:min(620px,calc(100% - 32px));
  max-width:620px;
  border:1px solid #e3e7ee;
  border-radius:20px;
  box-shadow:0 24px 70px rgba(25,32,48,.18);
}
#modal:has(.appointment-detail-panel) #modalbody{
  padding:30px 32px 28px;
}
#modal:has(.appointment-detail-panel) .modalhead{
  margin-bottom:22px;
}
#modal:has(.appointment-detail-panel) .modalhead h2{
  margin:0;
  color:#151827;
  font-size:27px;
  line-height:1.18;
  letter-spacing:-.55px;
}
#modal:has(.appointment-detail-panel) .close{
  width:40px;
  height:40px;
  border:1px solid #e1e5ec!important;
  border-radius:50%;
  background:#fff!important;
  color:#1c2230!important;
  box-shadow:none!important;
  outline:none!important;
}
#modal:has(.appointment-detail-panel) .close:hover{
  border-color:#cfc5ff!important;
  background:#faf8ff!important;
  color:#6848ea!important;
}
#modal:has(.appointment-detail-panel) .close:focus,#modal:has(.appointment-detail-panel) .close:active{
  outline:none!important;
  box-shadow:none!important;
}
#modal:has(.appointment-detail-panel) .close:focus-visible{
  border-color:#a992ff!important;
  box-shadow:0 0 0 3px rgba(124,87,255,.13)!important;
}
.appointment-detail-panel{
  display:grid;
  gap:18px;
}
.appointment-detail-summary{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
  padding:15px 16px;
  border:1px solid #e8e7f3;
  border-radius:15px;
  background:#fbfaff;
}
.appointment-detail-avatar{
  display:grid;
  place-items:center;
  flex:0 0 46px;
  width:46px;
  height:46px;
  border-radius:14px;
  background:#eee9ff;
  color:#6e4cf5;
  font-size:15px;
  font-weight:700;
}
.appointment-detail-person{
  min-width:0;
  flex:1;
}
.appointment-detail-person h3{
  margin:0 0 3px;
  color:#182034;
  font-size:18px;
  line-height:1.25;
}
.appointment-detail-person p{
  margin:0;
  overflow:hidden;
  color:#71809a;
  font-size:13.5px;
  line-height:1.4;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.appointment-detail-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:28px;
  padding:4px 10px;
  border:1px solid #ccebdc;
  border-radius:999px;
  background:#eefaf4;
  color:#23825c;
  font-size:12px;
  font-weight:650;
  white-space:nowrap;
}
.appointment-detail-status.is-completed{
  border-color:#d9d2ff;
  background:#f4f1ff;
  color:#6b4ee8;
}
.appointment-detail-status.is-cancelled{
  border-color:#e2e5ea;
  background:#f4f5f7;
  color:#7e8796;
}
.appointment-detail-meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.appointment-detail-meta-item{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  min-height:48px;
  padding:10px 12px;
  border:1px solid #e7eaf0;
  border-radius:12px;
  background:#fff;
  color:#536078;
}
.appointment-detail-meta-item svg{
  flex:0 0 17px;
  width:17px;
  height:17px;
  color:var(--violet);
}
.appointment-detail-meta-item span{
  min-width:0;
  overflow:hidden;
  font-size:13px;
  font-weight:550;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.appointment-detail-note{
  padding:14px 15px;
  border:1px solid #e9edf3;
  border-radius:13px;
  background:#f8fafc;
}
.appointment-detail-note-head{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
  color:#48566d;
}
.appointment-detail-note-head svg{
  width:17px;
  height:17px;
  color:var(--violet);
}
.appointment-detail-note-head h4{
  margin:0;
  font-size:13px;
  font-weight:700;
}
.appointment-detail-note p{
  margin:0;
  color:#6e788a;
  font-size:13.5px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
#modal:has(.appointment-detail-panel) .appointment-detail-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:2px;
  padding-top:0;
  border-top:0;
}
#modal:has(.appointment-detail-panel) .appointment-detail-actions .btn{
  width:100%;
  min-height:44px;
  margin:0;
  border-radius:11px;
  font-size:13.5px;
  font-weight:650;
}
#modal:has(.appointment-detail-panel) .appointment-detail-actions .appointment-detail-edit{
  border:1px solid #dddfe6!important;
  background:#fff!important;
  color:#38445a!important;
}
#modal:has(.appointment-detail-panel) .appointment-detail-actions .appointment-detail-edit:hover{
  border-color:#cfc5ff!important;
  background:#faf8ff!important;
  color:#6548db!important;
}
#modal:has(.appointment-detail-panel) .appointment-detail-actions .appointment-detail-primary{
  border-color:var(--violet)!important;
  background:var(--violet)!important;
  color:#fff!important;
  box-shadow:0 5px 14px rgba(124,87,255,.18);
}
#modal:has(.appointment-detail-panel) .appointment-detail-actions .appointment-detail-primary:hover{
  border-color:var(--violet-hover)!important;
  background:var(--violet-hover)!important;
}
@media(max-width:620px){
  #modal:has(.appointment-detail-panel) #modalbody{padding:24px 20px 22px}
  #modal:has(.appointment-detail-panel) .modalhead h2{font-size:24px}
  .appointment-detail-summary{align-items:flex-start;flex-wrap:wrap}
  .appointment-detail-person{flex:1 1 calc(100% - 60px)}
  .appointment-detail-status{margin-left:60px}
  .appointment-detail-meta{grid-template-columns:1fr}
  #modal:has(.appointment-detail-panel) .appointment-detail-actions{grid-template-columns:1fr}
}
