/* Vehicle-ready sits next to the appointment status, in normal document flow.
   This last-loaded stylesheet supersedes old bottom-right absolute positioning. */
#calendar #calendarGrid .cal-cell .event .calendar-status-vehicle-row{
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  align-self:stretch!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  gap:4px!important;
  margin:3px 0 0!important;
  padding:0!important;
}
#calendar #calendarGrid .cal-cell .event .calendar-status-vehicle-row .event-status-tag{
  display:inline-flex!important;
  flex:0 1 auto!important;
  align-items:center!important;
  align-self:center!important;
  min-width:0!important;
  max-width:100%!important;
  width:auto!important;
  margin:0!important;
  padding:3px 5px!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#calendar #calendarGrid .cal-cell .event .calendar-status-vehicle-row .calendar-vehicle-ready-btn,
#calendar.calendar-view-day #calendarGrid .calendar-day-event-row>.event .calendar-status-vehicle-row .calendar-vehicle-ready-btn,
#calendar #calendarGrid .cal-cell .calendar-parallel-event-row>.event .calendar-status-vehicle-row .calendar-vehicle-ready-btn{
  position:static!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  z-index:auto!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
  width:auto!important;
  min-width:0!important;
  max-width:52%!important;
  min-height:22px!important;
  height:22px!important;
  margin:0 0 0 auto!important;
  padding:0 6px!important;
  font-size:8px!important;
  line-height:1!important;
  border-radius:7px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  box-shadow:none!important;
}
#calendar #calendarGrid .cal-cell .event .calendar-status-vehicle-row .calendar-vehicle-ready-btn:focus-visible{
  outline:2px solid #13794c;
  outline-offset:2px;
}
/* Remove extra card height previously reserved for the floating button. */
@media(max-width:620px){
  #calendar.calendar-view-day #calendarGrid .cal-cell>.event:has(>.calendar-status-vehicle-row),
  #calendar #calendarGrid.calendar-grid.half-hour:not(.calendar-day-view) .event:has(>.calendar-status-vehicle-row){
    padding-bottom:6px!important;
  }
  #calendar.calendar-view-day #calendarGrid .cal-cell>.event:has(>.calendar-status-vehicle-row) .event-worker{
    padding-right:0!important;
  }
}
/* Compact mobile actions: cancel + save, ready on next row, new booking below. */
@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;
  }
}

/* Appointment attendance actions — tidy icon buttons, 2026-10-09. */
#editAppointmentModal .appointment-header-attendance .appointment-attendance-actions,
#attendanceQuickModal .appointment-attendance-actions {
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  gap:7px!important;
}
#editAppointmentModal .appointment-header-attendance .appointment-attendance-actions>.btn,
#attendanceQuickModal .appointment-attendance-actions>.btn {
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  box-sizing:border-box!important;
  min-width:0!important;
  height:36px!important;
  min-height:36px!important;
  width:auto!important;
  padding:0 11px!important;
  border-width:1px!important;
  border-style:solid!important;
  border-radius:10px!important;
  font-size:11px!important;
  font-weight:650!important;
  letter-spacing:-.12px!important;
  line-height:1!important;
  white-space:nowrap!important;
  text-overflow:clip!important;
  overflow:visible!important;
  box-shadow:none!important;
}
#editAppointmentModal .appointment-header-attendance .appointment-attendance-actions>.attendance-no {
  min-width:0!important;
  padding:0 11px!important;
}
#editAppointmentModal .appointment-header-attendance .appointment-attendance-actions>.attendance-yes {
  min-width:0!important;
  padding:0 11px!important;
}
#editAppointmentModal .appointment-attendance-actions .attendance-yes,
#attendanceQuickModal .appointment-attendance-actions .attendance-yes {
  background:#f0f8f3!important;
  border-color:#bfddcb!important;
  color:#236b46!important;
}
#editAppointmentModal .appointment-attendance-actions .attendance-no,
#attendanceQuickModal .appointment-attendance-actions .attendance-no {
  background:#fff5f4!important;
  border-color:#edceca!important;
  color:#a34b46!important;
}
#editAppointmentModal .appointment-attendance-actions .attendance-yes:hover:not(:disabled),
#editAppointmentModal .appointment-attendance-actions .attendance-yes.active,
#attendanceQuickModal .appointment-attendance-actions .attendance-yes:hover:not(:disabled) {
  background:#e2f3e9!important;
  border-color:#80bc97!important;
}
#editAppointmentModal .appointment-attendance-actions .attendance-no:hover:not(:disabled),
#editAppointmentModal .appointment-attendance-actions .attendance-no.active,
#attendanceQuickModal .appointment-attendance-actions .attendance-no:hover:not(:disabled) {
  background:#fde8e6!important;
  border-color:#df9f98!important;
}
#editAppointmentModal .appointment-attendance-actions .attendance-icon,
#attendanceQuickModal .appointment-attendance-actions .attendance-icon {
  display:block!important;
  flex:0 0 15px!important;
  width:15px!important;
  height:15px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.85!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
#editAppointmentModal .appointment-attendance-actions .btn>span,
#attendanceQuickModal .appointment-attendance-actions .btn>span {
  display:inline-block!important;
  white-space:nowrap!important;
}
#editAppointmentModal .appointment-detail-head-actions>.appointment-close-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 36px!important;
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  padding:0!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  background:#f3f6fa!important;
  color:#66798b!important;
  font-size:initial!important;
}
#editAppointmentModal .appointment-detail-head-actions>.appointment-close-btn svg{
  width:17px!important;
  height:17px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
}
#editAppointmentModal .appointment-detail-head-actions>.appointment-close-btn:hover {
  background:#e9eff6!important;
  color:#344e65!important;
}
#editAppointmentModal .appointment-detail-head-actions>.appointment-close-btn:focus-visible,
#editAppointmentModal .appointment-header-attendance .appointment-attendance-actions>.btn:focus-visible,
#attendanceQuickModal .appointment-attendance-actions>.btn:focus-visible {
  outline:2px solid #286fa1!important;
  outline-offset:2px!important;
}
@media(max-width:390px){
  #editAppointmentModal .appointment-header-attendance .appointment-attendance-actions{
    gap:5px!important;
  }
  #editAppointmentModal .appointment-header-attendance .appointment-attendance-actions>.btn{
    gap:4px!important;
    padding:0 7px!important;
    font-size:10px!important;
  }
  #editAppointmentModal .appointment-attendance-actions .attendance-icon{
    width:14px!important;
    height:14px!important;
    flex-basis:14px!important;
  }
}
