/* ZAUZMI — appointment action footer layout (2026-10-12).
   The visible actions are a compact single row on desktop/tablet.
   Vehicle-ready stays exclusively in automotive businesses. */

/* Multiple older selectors force footer buttons to display even when their
   JavaScript inline style says none. Hidden state always wins. */
#editAppointmentModal #vehicleReadyBtn[hidden],
#editAppointmentModal:not(.auto-center-appointment) #vehicleReadyBtn,
#editAppointmentModal .appointment-actionbar .btn[hidden],
#editAppointmentModal .appointment-actionbar .btn[style*="display: none"],
#editAppointmentModal .appointment-actionbar .btn[style*="display:none"] {
  display:none!important;
}

/* Reduce clutter: cancellation/restore/new booking on the left;
   the save action stays at the right. */
@media(min-width:621px){
  #editAppointmentModal .appointment-actionbar.modal-actions {
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    padding:9px 12px!important;
    overflow:visible!important;

  }
  #editAppointmentModal .appointment-actionbar .appointment-danger-group,
  #editAppointmentModal .appointment-actionbar .appointment-primary-group {
    display:flex!important;
    flex:0 0 auto!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
  }
  #editAppointmentModal .appointment-actionbar .appointment-primary-group {
    margin-left:auto!important;
  }
  #editAppointmentModal .appointment-actionbar .btn:not([hidden]){
    box-sizing:border-box!important;
    flex:0 0 auto!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    min-height:36px!important;
    height:36px!important;
    padding:0 8px!important;
    margin:0!important;
    border-radius:8px!important;
    font-family:Inter,system-ui,sans-serif!important;
    font-size:10px!important;
    font-weight:650!important;
    letter-spacing:0!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    text-align:center!important;
  }
  #editAppointmentModal .appointment-actionbar #vehicleReadyBtn:not([hidden]){
    min-width:0!important;
    height:36px!important;
    min-height:36px!important;
    padding:0 8px!important;
    font-size:10px!important;
    box-shadow:none!important;
  }
  #editAppointmentModal .appointment-actionbar .appointment-followup-btn{
    border-color:#b8d7c5!important;
    background:#f3faf6!important;
    color:#347653!important;
  }
}

/* Phone width cannot contain all six labelled buttons legibly in a row.
   Preserve the usable 2-column button grid on those screens. */
@media(max-width:620px){
  #editAppointmentModal .appointment-actionbar .appointment-followup-btn {
    grid-column:1/-1!important;
    grid-row:auto!important;
    justify-self:stretch!important;
    width:100%!important;
    min-width:0!important;
  }
}
