/* Studio CRM 10.37.54 — lapidação final de legibilidade do painel lateral da Agenda.
   Mantém a largura do drawer e melhora leitura, contraste e ações. */
.agenda-v31-details.drawer-open{
  --agenda-side-actions-w:106px;
}

/* Ações: leitura maior, uma linha para os rótulos curtos e alvos confortáveis. */
.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:9px!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:36px!important;
  padding:7px 8px!important;
  font-size:9px!important;
  line-height:1.1!important;
  font-weight:800!important;
  letter-spacing:-.05px!important;
}
.agenda-v31-details.drawer-open .agenda-detail-actions-compact .agenda-action-complete{
  white-space:nowrap!important;
}

/* Metadados do compromisso: pequenos, mas não microscópicos. */
.agenda-v31-details.drawer-open .premium-appointment-card .appointment-information span{
  font-size:10px!important;
  line-height:1.34!important;
  color:#52647a!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .agenda-event-summary-footer{
  font-size:9.6px!important;
  line-height:1.38!important;
  color:#56667a!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .agenda-event-summary-footer strong,
.agenda-v31-details.drawer-open .premium-appointment-card .agenda-event-summary-footer b{
  color:#172033!important;
  font-weight:800!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .appointment-status,
.agenda-v31-details.drawer-open .premium-appointment-card .agenda-sync-badge{
  font-size:9px!important;
}

/* WhatsApp: contraste e legibilidade maiores sem aumentar significativamente a altura. */
.agenda-v31-details.drawer-open .agenda-whatsapp-automation-card{
  color:#27364a!important;
}
.agenda-v31-details.drawer-open .agenda-whatsapp-automation-head strong{
  font-size:13.5px!important;
  color:#1f2937!important;
}
.agenda-v31-details.drawer-open .agenda-whatsapp-automation-head small{
  font-size:9.5px!important;
  line-height:1.35!important;
  color:#66758a!important;
}
.agenda-v31-details.drawer-open .agenda-auto-classification-label{
  font-size:10px!important;
  color:#344054!important;
}
.agenda-v31-details.drawer-open .agenda-auto-classification-actions button{
  font-size:9px!important;
}
.agenda-v31-details.drawer-open .agenda-whatsapp-automation-grid span{
  font-size:9.5px!important;
  color:#667085!important;
}
.agenda-v31-details.drawer-open .agenda-whatsapp-automation-grid b{
  font-size:10px!important;
  color:#172033!important;
}
.agenda-v31-details.drawer-open .agenda-auto-rule-note,
.agenda-v31-details.drawer-open .agenda-auto-help{
  font-size:9px!important;
  line-height:1.4!important;
  color:#66758a!important;
}
.agenda-v31-details.drawer-open .agenda-premium-sticky-footer button,
.agenda-v31-details.drawer-open .agenda-premium-sticky-footer a{
  font-size:9.5px!important;
  min-height:35px!important;
}

/* Mantém o título como prioridade visual, sem esmagar a coluna central. */
.agenda-v31-details.drawer-open .premium-appointment-card .appointment-content{
  padding-right:calc(var(--agenda-side-actions-w) + 12px)!important;
}
.agenda-v31-details.drawer-open .premium-appointment-card .appointment-heading h3{
  font-size:14.8px!important;
  line-height:1.2!important;
}

@media(max-width:1120px){
  .agenda-v31-details.drawer-open{--agenda-side-actions-w:102px}
  .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{
    font-size:8.7px!important;
  }
}
