/* Studio CRM 10.37.53 — refinamento de legibilidade do painel lateral da Agenda
   Mantém a mesma largura do drawer; redistribui espaço interno e reforça a hierarquia. */
.agenda-v31-details.drawer-open{
  --agenda-side-actions-w:104px;
}

/* Cabeçalho do painel: leitura mais confortável sem aumentar a lateral. */
.agenda-v31-details.drawer-open .selected-date-header .eyebrow{
  font-size:9px!important;
  letter-spacing:.85px!important;
  font-weight:850!important;
}
.agenda-v31-details.drawer-open .selected-date-header h2{
  font-size:17px!important;
  line-height:1.22!important;
  letter-spacing:-.2px!important;
}
.agenda-v31-details.drawer-open .selected-date-header p{
  font-size:10px!important;
  line-height:1.35!important;
}

/* Card principal: hora estreita + conteúdo valorizado + ações fixas à direita. */
.agenda-v31-details.drawer-open .premium-appointment-card{
  grid-template-columns:50px minmax(0,1fr)!important;
  border-radius:14px!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .appointment-time{
  padding:13px 4px!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .appointment-time strong{
  font-size:15px!important;
  line-height:1.05!important;
  letter-spacing:-.2px!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .appointment-time span{
  font-size:9px!important;
  line-height:1.25!important;
  margin-top:6px!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .appointment-content{
  padding:12px calc(var(--agenda-side-actions-w) + 13px) 12px 9px!important;
  min-height:158px!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .appointment-type{
  font-size:8.5px!important;
  line-height:1.15!important;
  letter-spacing:.7px!important;
  font-weight:850!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .appointment-heading{
  display:block!important;
  min-width:0!important;
  margin:5px 0 7px!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .appointment-heading h3{
  display:block!important;
  width:100%!important;
  margin:0!important;
  font-size:14.5px!important;
  line-height:1.18!important;
  font-weight:850!important;
  letter-spacing:-.15px!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .appointment-status{
  display:inline-flex!important;
  width:auto!important;
  margin-top:6px!important;
  padding:5px 8px!important;
  font-size:8.5px!important;
  line-height:1.1!important;
  font-weight:800!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .agenda-sync-badge{
  min-height:25px!important;
  padding:5px 8px!important;
  font-size:8.5px!important;
  line-height:1.1!important;
  font-weight:800!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .appointment-information{
  gap:6px!important;
  padding-top:8px!important;
  margin-top:7px!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .appointment-information div{
  gap:6px!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .appointment-information span{
  font-size:9.5px!important;
  line-height:1.3!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .appointment-information svg{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .agenda-event-summary-footer{
  margin-top:7px!important;
  padding-top:7px!important;
  font-size:9px!important;
  line-height:1.35!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .agenda-event-summary-footer *{
  font-size:inherit!important;
  line-height:inherit!important;
}

/* Ações: mais fáceis de ler e clicar, sem roubar largura do título. */
.agenda-v31-details.drawer-open .agenda-detail-actions-compact.agenda-native-actions-bar,
.agenda-v31-details.drawer-open .agenda-detail-actions-compact[data-detail-polish="1"]{
  width:var(--agenda-side-actions-w)!important;
  right:10px!important;
  gap:6px!important;
}
.agenda-v31-details.drawer-open .agenda-detail-actions-compact.agenda-native-actions-bar > button,
.agenda-v31-details.drawer-open .agenda-detail-actions-compact.agenda-native-actions-bar > a,
.agenda-v31-details.drawer-open .agenda-detail-actions-compact[data-detail-polish="1"] > button,
.agenda-v31-details.drawer-open .agenda-detail-actions-compact[data-detail-polish="1"] > a{
  min-height:34px!important;
  padding:7px 8px!important;
  border-radius:9px!important;
  font-size:8.8px!important;
  line-height:1.15!important;
  font-weight:800!important;
}

/* WhatsApp: mesma altura geral, porém tipografia realmente utilizável. */
.agenda-v31-details.drawer-open .agenda-whatsapp-automation-card{
  padding:11px!important;
}
.agenda-v31-details.drawer-open .agenda-whatsapp-automation-head strong{
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:850!important;
}
.agenda-v31-details.drawer-open .agenda-whatsapp-automation-head small{
  font-size:9px!important;
  line-height:1.3!important;
  margin-top:3px!important;
}
.agenda-v31-details.drawer-open .agenda-auto-ready,
.agenda-v31-details.drawer-open .agenda-auto-review{
  font-size:8px!important;
  font-weight:850!important;
  padding:6px 8px!important;
}
.agenda-v31-details.drawer-open .agenda-auto-classification-label{
  font-size:9.5px!important;
  line-height:1.3!important;
  font-weight:750!important;
}
.agenda-v31-details.drawer-open .agenda-auto-classification-actions button{
  min-height:31px!important;
  font-size:8.5px!important;
  font-weight:800!important;
}
.agenda-v31-details.drawer-open .agenda-whatsapp-automation-grid span{
  min-height:37px!important;
  padding:7px 8px!important;
  grid-template-columns:82px minmax(0,1fr)!important;
  font-size:9px!important;
  line-height:1.3!important;
}
.agenda-v31-details.drawer-open .agenda-whatsapp-automation-grid b{
  font-size:9.5px!important;
  line-height:1.25!important;
  font-weight:800!important;
}
.agenda-v31-details.drawer-open .agenda-auto-rule-note,
.agenda-v31-details.drawer-open .agenda-auto-help{
  font-size:8.5px!important;
  line-height:1.35!important;
}
.agenda-v31-details.drawer-open .agenda-premium-sticky-footer button,
.agenda-v31-details.drawer-open .agenda-premium-sticky-footer a{
  min-height:34px!important;
  font-size:9px!important;
  font-weight:800!important;
}

/* Em larguras menores, preserva a prioridade: título > ações > metadados. */
@media(max-width:1120px){
  .agenda-v31-details.drawer-open{--agenda-side-actions-w:98px}
  .agenda-v31-details.drawer-open .premium-appointment-card{grid-template-columns:48px minmax(0,1fr)!important}
  .agenda-v31-details.drawer-open .premium-appointment-card .appointment-content{
    padding-right:calc(var(--agenda-side-actions-w) + 11px)!important;
  }
  .agenda-v31-details.drawer-open .premium-appointment-card .appointment-heading h3{font-size:14px!important}
  .agenda-v31-details.drawer-open .agenda-detail-actions-compact.agenda-native-actions-bar,
  .agenda-v31-details.drawer-open .agenda-detail-actions-compact[data-detail-polish="1"]{right:8px!important}
}
