/* HayOrder v1.1.40 – Bestellverlauf kompakter, Buttons nur Bold, sanfte Aufmerksamkeit */

/* Detail-Timeline kompakter und ruhiger */
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-history-section{
  padding:16px!important;
}
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-section-heading{
  margin-bottom:12px!important;
}
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho54-timeline,
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho54-timeline.has-cancellation,
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid,
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid.has-cancellation{
  gap:10px!important;
}
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho-timeline-event{
  min-height:90px!important;
  padding:14px 15px 13px!important;
  border-radius:15px!important;
}
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho-timeline-event strong{
  font-size:13px!important;
  line-height:1.24!important;
  font-weight:700!important;
}
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho-timeline-event small{
  margin-top:5px!important;
  font-size:10.5px!important;
  line-height:1.42!important;
}

/* Buttons nur Bold und sauberer */
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons button,
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons .ho54-print{
  font-weight:700!important;
  letter-spacing:0!important;
}

/* Desktop: drei Buttons kompakt in einer Reihe, rechts justiert */
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-modal-footer{
  padding:14px 18px max(14px,env(safe-area-inset-bottom))!important;
}
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  align-items:stretch!important;
  gap:10px!important;
  width:100%!important;
}
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons>form,
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons>.ho68-print-button{
  flex:0 1 auto!important;
  width:auto!important;
}
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons>.ho68-primary-form{order:1!important}
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons>.ho68-cancel-form{order:2!important}
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons>.ho68-print-button{order:3!important}
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons .ho54-print,
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons button{
  width:auto!important;
  min-width:210px!important;
  min-height:50px!important;
  padding:10px 20px!important;
  border-radius:14px!important;
  white-space:nowrap!important;
  font-size:14px!important;
}
body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons>.ho68-primary-form button{
  min-width:250px!important;
}

/* Übersicht: leichte Aufmerksamkeit für 'Annahme erforderlich' */
#orders-ajax-root.ho-orders-140 .ho122-order-card.is-attention .ho127-fact-elapsed{
  position:relative!important;
  background:linear-gradient(135deg,rgba(106,30,36,.26),rgba(59,22,27,.18))!important;
  box-shadow:inset 0 0 0 1px rgba(255,123,123,.16)!important;
  animation:ho140-attention-soft 1.9s ease-in-out infinite!important;
}
#orders-ajax-root.ho-orders-140 .ho122-order-card.is-attention .ho127-fact-elapsed .ho132-new-waiting{
  color:#ffb0a9!important;
  font-weight:700!important;
}
@keyframes ho140-attention-soft{
  0%,100%{box-shadow:inset 0 0 0 1px rgba(255,123,123,.14),0 0 0 0 rgba(255,104,104,0);}
  50%{box-shadow:inset 0 0 0 1px rgba(255,123,123,.24),0 0 0 3px rgba(255,104,104,.06);}
}
@media (prefers-reduced-motion:reduce){
  #orders-ajax-root.ho-orders-140 .ho122-order-card.is-attention .ho127-fact-elapsed{animation:none!important;}
}

@media(max-width:900px){
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho54-timeline,
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho54-timeline.has-cancellation,
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid,
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid.has-cancellation{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:700px){
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-history-section{
    padding:14px!important;
  }
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-section-heading{
    align-items:flex-start!important;
    gap:8px!important;
  }
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho54-timeline,
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho54-timeline.has-cancellation,
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid,
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid.has-cancellation{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho-timeline-event{
    min-height:82px!important;
    padding:12px 12px 11px!important;
  }
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho-timeline-event strong{
    font-size:12.5px!important;
  }
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho-timeline-event small{
    font-size:10px!important;
  }

  /* Handy: oben ein Button vollbreit, unten zwei nebeneinander über ganze Containerbreite */
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-modal-footer{
    padding:12px 12px max(12px,env(safe-area-inset-bottom))!important;
  }
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    justify-content:stretch!important;
    gap:8px!important;
  }
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons>.ho68-primary-form{
    grid-column:1/-1!important;
    width:100%!important;
  }
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons>.ho68-cancel-form,
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons>.ho68-print-button{
    width:100%!important;
  }
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons .ho54-print,
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho68-footer-buttons button{
    width:100%!important;
    min-width:0!important;
    min-height:54px!important;
    padding:10px 12px!important;
    white-space:normal!important;
  }
}
@media(max-width:420px){
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho54-timeline,
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho54-timeline.has-cancellation,
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid,
  body #orders-ajax-root.ho-orders-140 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid.has-cancellation{
    grid-template-columns:minmax(0,1fr)!important;
  }
}
